telemetry

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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