Documentation ¶
Index ¶
- type Tracing
- func (Tracing) CaddyModule() caddy.ModuleInfo
- func (ot *Tracing) Cleanup() error
- func (ot *Tracing) Provision(ctx caddy.Context) error
- func (ot *Tracing) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
- func (ot *Tracing) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracing ¶
type Tracing struct { // SpanName is a span name. It should follow the naming guidelines here: // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#span SpanName string `json:"span"` // contains filtered or unexported fields }
Tracing implements an HTTP handler that adds support for distributed tracing, using OpenTelemetry. This module is responsible for the injection and propagation of the trace context. Configure this module via environment variables (see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md). Some values can be overwritten in the configuration file.
func (Tracing) CaddyModule ¶
func (Tracing) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*Tracing) Cleanup ¶
Cleanup implements caddy.CleanerUpper and closes any idle connections. It calls Shutdown method for a trace provider https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk.md#shutdown.