Skip to content

Instantly share code, notes, and snippets.

@zhaohuabing
Created August 24, 2019 02:13
Show Gist options
  • Save zhaohuabing/adf459df071429e1c3b67684f8fd5bda to your computer and use it in GitHub Desktop.
Save zhaohuabing/adf459df071429e1c3b67684f8fd5bda to your computer and use it in GitHub Desktop.
@Bean
public Tracer jaegerTracer() {
// The following environment variables need to set
// JAEGER_ENDPOINT="http://10.42.126.171:28019/api/traces"
// JAEGER_PROPAGATION="b3"
// JAEGER_TRACEID_128BIT="true" Use 128bit tracer id to be compatible with the
// trace id generated by istio/envoy
return Configuration.fromEnv("eshop-opentracing").getTracer();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment