otel

package
v1.86.42 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Invoke(Register),
)

Module for fx.

Functions

func NewNoopTracer

func NewNoopTracer(name string) trace.Tracer

NewNoopTracer for otel.

func NewTracer

func NewTracer(params TracerParams) (trace.Tracer, error)

NewTracer for otel.

func Register

func Register()

Register for otel.

Types

type Config

type Config struct {
	Kind string `yaml:"kind" json:"kind" toml:"kind"`
	Host string `yaml:"host" json:"host" toml:"host"`
}

Config for otel.

func (*Config) IsJaeger

func (c *Config) IsJaeger() bool

IsJaeger config.

type TracerParams

type TracerParams struct {
	Lifecycle fx.Lifecycle
	Name      string
	Version   version.Version
	Config    *Config
}

TracerParams for otel.

Jump to

Keyboard shortcuts

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