Trace routing along with Tyk


#1

Hello,

Was wonering if there is a way to setup trace routing using a plugin or a library along with Tyk ?

Thanks,
Prashanth


#2

Hi Prashath,

I’m not sure I understand - you want to trace the route from the client through Tyk?

Cheers,
Martin


#3

Sorry I wasn’t clear.

So we are trying to implement route tracing throughout our apis.
We might be using zipkin to log the trace.

So i was wondering if there is support for logging these traces through zipkin or any other library.
Also, to start this trace, we’d be generating a random number for each request and log some data.
ex:
trace_id : 123
ip: 1.1.1.1
span_id : 456

Tyk would then send this information of trace_id, span_id etc as part of headers in the proxy request to the service, which can then be used by the services to log more information.

Hope this is a bit clearer.

Thanks,
Prashanth


#4

Gotcha… You could look at using the JavaScript middleware to enrich requests, that would be the only hook I can see without modifying core to support another lib.

We’ve been considering a sink for data like this, but it’s not on the roadmap yet.


#5

Thanks Martin.

Will try it out with the middleware JS.