1

I may have missed it, but how do save query parameters in zipkin?

My service is running:

  • spring-boot = 2.0.4.RELEASE
  • spring-cloud = Finchley.SR2
  • spring-cloud-starter-zipkin = 2.0.2.RELEASE

I'm missing host too, but I suspect that is because I'm running services in docker containers.

update 8/13/2019

I make a call to https://test-service.mydomain.com/api/conn/parallel2?repetitions=20&delay=10000&bypassTokenCache=true&overrideTokenRefreshSeconds=10

Notice in the trace I'm missing host and query parameters. Is there any way to record those values in zipkin?

enter image description here

Community
  • 1
  • 1
Psychic Rush
  • 360
  • 1
  • 3
  • 14
  • Sorry but I completely don't understand your problem. You can't connect to Zipkin? You can't see query params for a span that wraps your REST call? Can you elaborate? – Marcin Grzejszczak Aug 11 '19 at 19:46
  • Sure - sorry for being to vague. I have zipkin working and it's catching traces from a number of different microservices. The problem is I can't see the query parameters. – Psychic Rush Aug 13 '19 at 18:18
  • 1
    Have you logged them? If not then bo wonder cause sleuth doesn't log query params out of the box – Marcin Grzejszczak Aug 13 '19 at 18:19
  • That is it. I was not sure what sleuth was recording out of the box. Are there any examples of how to add them to the tracing? – Psychic Rush Aug 13 '19 at 18:36
  • 1
    Read the documentation on how to add a tag. Then inject a SpanCustomizer and use it to pass additional tags with query params – Marcin Grzejszczak Aug 13 '19 at 18:44

0 Answers0