Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OTelSpan ¶
type OTelSpan struct {
// contains filtered or unexported fields
}
OTelSpan wraps the OpenTelemetry trace.Span to implement core.Span.
func (*OTelSpan) RecordError ¶
RecordError records an error in the span. This implements the core.Span interface.
func (*OTelSpan) SetAttr ¶
SetAttr sets a key-value attribute on the span. It converts interface{} values to appropriate OTel attribute types.
func (*OTelSpan) SetAttributes ¶
SetAttributes sets multiple attributes.
type OTelTracer ¶
type OTelTracer struct {
// contains filtered or unexported fields
}
OTelTracer wraps the OpenTelemetry trace.Tracer to implement core.Tracer. This adapter encapsulates all OTel-specific logic, allowing the rest of the codebase to depend only on the high-level core.Tracer interface.
Click to show internal directories.
Click to hide internal directories.