add the opentelemetry tracing (#908)
* add the opentelemetry tracing * fix the error sampler config * 添加stream的链路跟踪 * fix the error field name
This commit is contained in:
@@ -72,6 +72,10 @@ func (c *client) buildDialOptions(opts ...ClientOption) []grpc.DialOption {
|
||||
clientinterceptors.PrometheusInterceptor,
|
||||
clientinterceptors.BreakerInterceptor,
|
||||
clientinterceptors.TimeoutInterceptor(cliOpts.Timeout),
|
||||
clientinterceptors.OpenTracingInterceptor(),
|
||||
),
|
||||
WithStreamClientInterceptors(
|
||||
clientinterceptors.StreamOpenTracingInterceptor(),
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user