trace

package
v2.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 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 \
  -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 added in v2.0.3

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 added in v2.0.3

func Get() *Trace

func (*Trace) Close added in v2.0.8

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

func (*Trace) Init added in v2.0.3

func (t *Trace) Init() error

otlp go sdk 使用方法: https://opentelemetry.io/docs/languages/go/exporters/ jaeger 端口说明: https://www.jaegertracing.io/docs/1.55/getting-started/#all-in-one

func (*Trace) Name added in v2.0.3

func (i *Trace) Name() string

func (*Trace) Priority added in v2.0.3

func (i *Trace) Priority() int

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

Jump to

Keyboard shortcuts

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