bootstrap

package
v0.0.0-...-bfb259f Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMeter

func InitMeter(mp metric.MeterProvider, name, version string, attr []attribute.KeyValue) metric.Meter

func InitTracer

func InitTracer(tp trace.TracerProvider, name, version string, attr []attribute.KeyValue) trace.Tracer

func NewGRPCExporter

func NewGRPCExporter(ctx context.Context, endpoint string) (sdktrace.SpanExporter, error)

func NewMeterReader

func NewMeterReader() (*prometheus.Exporter, error)

func NewResource

func NewResource(attr []attribute.KeyValue) (*resource.Resource, error)

func NewStdoutExporter

func NewStdoutExporter(w io.Writer) (sdktrace.SpanExporter, error)

Types

type OTLP

type OTLP struct {
	Tracer trace.Tracer
	Meter  metric.Meter
	// contains filtered or unexported fields
}

func NewOTLP

func NewOTLP(ctx context.Context, config *OTLPConfig) (*OTLP, error)

func (*OTLP) Shutdown

func (o *OTLP) Shutdown(ctx context.Context) error

type OTLPConfig

type OTLPConfig struct {
	ServiceName          string
	ServiceVersion       string
	GRPCExporterEndpoint string
	InstrumentAttributes []attribute.KeyValue
}

Jump to

Keyboard shortcuts

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