telemetry

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package telemetry exposes the OpenTelemetry instrumentation scope used by the gosso adapters. Callers obtain the gosso-scoped Tracer/Meter through this package so every span and metric carries the same instrumentation name and is filterable in a backend.

When no global TracerProvider or MeterProvider is configured, the returned tracer and meter are no-ops: gosso can therefore be imported safely by consumers with no telemetry stack, and lights up automatically once they wire one.

Index

Constants

View Source
const (
	AttrProtocol = "gosso.protocol"
	AttrStage    = "gosso.stage"
	AttrOutcome  = "outcome"
)

Attribute keys used across both adapters. Kept as a small, stable set so backend dashboards can standardise on them.

View Source
const InstrumentationName = "github.com/foomo/gosso"

InstrumentationName is the instrumentation scope reported on every span and metric emitted by gosso.

Variables

This section is empty.

Functions

func Meter

func Meter() metric.Meter

Meter returns the gosso-scoped Meter.

func Tracer

func Tracer() trace.Tracer

Tracer returns the gosso-scoped Tracer.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL