telemetry

package
v0.8.19 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package telemetry implements OpenTelemetry tracing and metrics collection for EarthlBuild's internal operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tracer

func Tracer() trace.Tracer

Tracer returns the tracer for the earth CLI.

func WithTraceparent

func WithTraceparent(ctx context.Context) context.Context

WithTraceparent returns a context with the traceparent (W3C Trace Context format) extracted from the environment variable TRACEPARENT.

Types

type ShutdownFunc

type ShutdownFunc func(context.Context) error

ShutdownFunc shuts down all OTel providers.

func Setup

func Setup(ctx context.Context) (ShutdownFunc, error)

Setup bootstraps the OpenTelemetry pipeline. If it does not return an error, make sure to call shutdown for proper cleanup.

Directories

Path Synopsis
Package semconv defines OpenTelemetry semantic conventions for earth's telemetry data.
Package semconv defines OpenTelemetry semantic conventions for earth's telemetry data.

Jump to

Keyboard shortcuts

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