Documentation ¶
Overview ¶
Package tracing otelhttp
Index ¶
Constants ¶
View Source
const ( // ServerName Used in query ServerName = "bcs-monitor-query" // TracerName tracer name TracerName = "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp" )
Variables ¶
This section is empty.
Functions ¶
func InitTracing ¶
InitTracing init tracing
Types ¶
type TracingTransport ¶
type TracingTransport struct { Transport http.RoundTripper TracerProvider trace.TracerProvider Propagators propagation.TextMapPropagator }
TracingTransport used by http Transport
func NewTracingTransport ¶
func NewTracingTransport(transport http.RoundTripper) *TracingTransport
NewTracingTransport make a new tracing transport, default transport can be nil
Click to show internal directories.
Click to hide internal directories.