public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime) { foreach (var messageInspector in clientRuntime.MessageInspectors) { if (messageInspector is ClientTracingInterceptor) { return; } } var tracer = GlobalTracer.Instance; var inspector = new ClientTracingInterceptor.Builder(tracer) .WithTracedAttributes( ClientTracingConfiguration.RequestAttribute.Headers, ClientTracingConfiguration.RequestAttribute.AllCallOptions, ClientTracingConfiguration.RequestAttribute.MethodName) .Build(); clientRuntime.ClientMessageInspectors.Add(inspector); }