MCPcopy
hub / github.com/grafana/dskit / Tracer

Struct Tracer

middleware/http_tracing.go:34–40  ·  middleware/http_tracing.go::Tracer

Tracer is a middleware which traces incoming requests. An empty Tracer is valid, but consider using NewTracer to access all its features.

Source from the content-addressed store, hash-verified

32// Tracer is a middleware which traces incoming requests.
33// An empty Tracer is valid, but consider using NewTracer to access all its features.
34type Tracer struct {
35 SourceIPs *SourceIPExtractor
36
37 traceHeaders bool
38 httpHeadersToExclude map[string]bool
39 publicEndpointFn func(*http.Request) bool
40}
41
42// NewTracer creates a new tracer optionally configuring the tracing of HTTP headers.
43// The configuration for HTTP headers tracing only applies to OpenTelemetry spans.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected