opentelemetry

package
v0.0.0-...-04c4af4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultTracer

func DefaultTracer() trace.Tracer

Types

type OpenTelemetry

type OpenTelemetry struct {
	providers.AbstractProvider

	Opts *Options
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *OpenTelemetry

func (*OpenTelemetry) Close

func (p *OpenTelemetry) Close() error

func (*OpenTelemetry) Enabled

func (p *OpenTelemetry) Enabled() bool

func (*OpenTelemetry) Flush

func (p *OpenTelemetry) Flush() error

func (*OpenTelemetry) Init

func (p *OpenTelemetry) Init() error

type Option

type Option func(*Options)

func WithAttributes

func WithAttributes(attributes map[string]string) Option

func WithEnabled

func WithEnabled(enabled bool) Option

func WithEndpoint

func WithEndpoint(endpoint string) Option

func WithOpentracingSupported

func WithOpentracingSupported(opentracingSupported bool) Option

func WithServiceName

func WithServiceName(serviceName string) Option

type Options

type Options struct {
	Enabled              bool
	Endpoint             string
	ServiceName          string
	Attributes           map[string]string
	OpentracingSupported bool
}

func (*Options) MergeIn

func (o *Options) MergeIn(opts ...Option)

Jump to

Keyboard shortcuts

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