telemetry

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package telemetry owns ghsync's OpenTelemetry tracing runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracing

type Tracing struct {
	// contains filtered or unexported fields
}

Tracing is an explicitly injected trace provider and W3C propagator. Tracing is disabled unless OTEL_TRACES_EXPORTER is explicitly set to otlp.

func NewTracing

func NewTracing(ctx context.Context, options TracingOptions) (*Tracing, error)

NewTracing constructs the process trace pipeline. OTLP/HTTP exporter configuration is read from the standard OTEL_EXPORTER_OTLP_* environment variables by the OpenTelemetry exporter.

func (*Tracing) Enabled

func (t *Tracing) Enabled() bool

func (*Tracing) Propagator

func (t *Tracing) Propagator() propagation.TextMapPropagator

Propagator returns the W3C Trace Context propagator. Baggage is deliberately excluded so internal baggage cannot be forwarded to GitHub.

func (*Tracing) Provider

func (t *Tracing) Provider() trace.TracerProvider

Provider returns the explicitly owned trace provider.

func (*Tracing) Shutdown

func (t *Tracing) Shutdown(ctx context.Context) error

type TracingOptions

type TracingOptions struct {
	Version string
	Command string
	Roles   []string
}

TracingOptions identifies one running command or role set.

Jump to

Keyboard shortcuts

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