Created
August 24, 2019 02:13
-
-
Save zhaohuabing/adf459df071429e1c3b67684f8fd5bda to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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