telemetry

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultTracesEndpoint is the default OTLP HTTP endpoint for Storacha telemetry.
	DefaultTracesEndpoint = "telemetry.storacha.network:443"

	// DefaultProfilesEndpoint is the default OTLP HTTP endpoint for sending profiles.
	DefaultProfilesEndpoint = DefaultTracesEndpoint
)

Variables

This section is empty.

Functions

func Setup

func Setup(ctx context.Context, cfg Config) (func(context.Context) error, error)

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

Types

type Config

type Config struct {
	Enabled   bool
	Endpoint  string
	Insecure  bool
	Profiling ProfilingConfig
}

Config configures OTLP tracing.

type ProfilingConfig added in v0.4.0

type ProfilingConfig struct {
	Enabled       bool
	Endpoint      string
	Insecure      bool
	Application   string
	BasicAuthUser string
	BasicAuthPass string
}

ProfilingConfig configures OTLP profiling.

Jump to

Keyboard shortcuts

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