Documentation ¶
Index ¶
Constants ¶
View Source
const (
FlagNameOpentelemetryEnabled = "opentelemetry.enabled"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenTelemetry ¶
type OpenTelemetry struct { Tracer tracer.Tracer Ctx context.Context Logger *slog.Logger // contains filtered or unexported fields }
var ( FlagOpentelemetryEnabled = common.SystemFlagBool(FlagNameOpentelemetryEnabled, true, "OpenTelemetry enabled") Telemetry *OpenTelemetry )
func NewTelemetry ¶
func NewTelemetry(ctx context.Context) (*OpenTelemetry, error)
func (*OpenTelemetry) Shutdown ¶
func (t *OpenTelemetry) Shutdown() error
type OpenTelemetrySpan ¶
type OpenTelemetrySpan struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.