telemetry

package
v0.2.27 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMeter added in v0.2.27

func GetMeter(name string) metric.Meter

func Init

func Init(ctx context.Context, cfg Config)

Init initialises OpenTelemetry based async-telemetry processes and returns (i.e., it does not block).

Types

type Config

type Config struct {
	// Debug sets the bind address for pprof & zpages server.
	Debug string `mapstructure:"debug_addr" default:"localhost:8090"`

	// OpenTelemetry trace & metrics configurations.
	EnableRuntimeMetrics bool `mapstructure:"enable_runtime_metrics"`

	// OpenTelemetry exporter configurations.
	ServiceName string `mapstructure:"service_name"`

	// NewRelic configs.
	NewRelicAPIKey string `mapstructure:"newrelic_api_key"`

	// OpenTelemetry Agent exporter.
	EnableOtelAgent  bool   `mapstructure:"enable_otel_agent"`
	OpenTelAgentAddr string `mapstructure:"otel_agent_addr"`
}

Jump to

Keyboard shortcuts

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