tracing

package
v0.0.0-...-f62171b Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 15 Imported by: 17

Documentation

Index

Constants

View Source
const (
	ProtocolGRPC         = "grpc"
	ProtocolHTTPProtobuf = "http/protobuf"
	ProtocolNone         = "none"
	ProtocolStdout       = "stdout"
)

Variables

This section is empty.

Functions

func DefaultTextMapPropagator

func DefaultTextMapPropagator() propagation.TextMapPropagator

Types

type Config

type Config struct {
	Protocol     string  `json:"protocol,omitempty"`
	Endpoint     string  `json:"endpoint,omitempty"`
	SamplingRate float64 `json:"samplingRate,omitempty"`
}

func DefaultConfig

func DefaultConfig() Config

func NewFromMap

func NewFromMap(m map[string]string) (Config, error)

func NewFromMapWithPrefix

func NewFromMapWithPrefix(prefix string, m map[string]string) (Config, error)

func (*Config) Validate

func (c *Config) Validate() error

type TracerProvider

type TracerProvider struct {
	trace.TracerProvider
	// contains filtered or unexported fields
}

func NewTracerProvider

func NewTracerProvider(
	ctx context.Context,
	cfg Config,
	opts ...sdktrace.TracerProviderOption,
) (*TracerProvider, error)

func (*TracerProvider) Shutdown

func (m *TracerProvider) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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