trace

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 7 Imported by: 0

README

Trace

Jaeger

To try out the OTLP exporter, since v1.35.0 you can run Jaeger as an OTLP endpoint and for trace visualization in a Docker container:

docker run -d --name jaeger-v1 \
  -e COLLECTOR_OTLP_ENABLED=true \
  -p 16686:16686 \
  -p 4317:4317 \
  -p 4318:4318 \
  jaegertracing/all-in-one:latest

Documentation

Index

Constants

View Source
const (
	AppName = "trace"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TRACE_PROVIDER

type TRACE_PROVIDER string
const (
	TRACE_PROVIDER_OTLP TRACE_PROVIDER = "otlp"
)

type Trace

type Trace struct {
	ioc.ObjectImpl

	Enable   bool           `json:"enable" yaml:"enable" toml:"enable" env:"ENABLE"`
	Provider TRACE_PROVIDER `toml:"provider" json:"provider" yaml:"provider" env:"PROVIDER"`
	Endpoint string         `toml:"endpoint" json:"endpoint" yaml:"endpoint" env:"ENDPOINT"`
	Insecure bool           `toml:"insecure" json:"insecure" yaml:"insecure" env:"INSECURE"`
	// contains filtered or unexported fields
}

func Get

func Get() *Trace

func (*Trace) Close

func (t *Trace) Close(ctx context.Context) error

func (*Trace) Name

func (i *Trace) Name() string

func (*Trace) Priority

func (i *Trace) Priority() int

优先初始化, 以供后面的组件使用

Jump to

Keyboard shortcuts

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