otlp

package
v0.1.1-beta.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OTLPGRPC    = "otlp.grpc"
	OTLPHTTP    = "otlp.http"
	OTLPCONSOLE = "otlp.console"
	OTLPFILE    = "otlp.file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceName       string
	HostName          string
	CollectorEndpoint string
	Exporter          string
	TraceFilePath     string
	GrpcToken         string
}

func (*Config) InitOpenTelemetry

func (c *Config) InitOpenTelemetry() (*sdktrace.TracerProvider, func())

InitOpenTelemetry 初始化方法

Jump to

Keyboard shortcuts

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