Documentation ¶
Index ¶
Constants ¶
View Source
const LocalsCtxKey = "otel-ctx"
Variables ¶
View Source
var ConfigDefault = Config{ SpanName: "HTTP {{ .Method }}", LocalKeyName: LocalsCtxKey, TracerStartAttributes: []trace.SpanStartOption{ trace.WithSpanKind(trace.SpanKindServer), trace.WithNewRoot(), }, }
ConfigDefault is the default config
View Source
var Tracer = otel.Tracer("fiber-otel-router")
Functions ¶
func SpanFromCtx ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.