Tracer is a middleware which traces incoming requests. An empty Tracer is valid, but consider using NewTracer to access all its features.
| 32 | // Tracer is a middleware which traces incoming requests. |
| 33 | // An empty Tracer is valid, but consider using NewTracer to access all its features. |
| 34 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected