ejaeger

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectEnvKey = "projectEnv"
	EnvKey        = "env"
)
View Source
const (
	MY_ENV_NAME_KEY         = "BSM_SERVICE_STAGE"
	MY_PROJECT_ENV_NAME_KEY = "MY_PROJECT_ENV_NAME"
	MY_PROJECT_NAME_KEY     = "MY_PROJECT_NAME"
	MY_PROJECT_TRACE_HOST   = "MY_PROJECT_TRACE_HOST"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enable bool

	ServiceName    string
	EnvName        string
	ProjectEnvName string

	AgentHost string // agent host
	AgentPort string // agent port
	Fraction  float64
	// contains filtered or unexported fields
}

func DefaultConfig

func DefaultConfig() *Config

func (*Config) Build

func (config *Config) Build(opts ...Option) trace.TracerProvider

func (*Config) WithTracerProviderOption

func (config *Config) WithTracerProviderOption(options ...tracesdk.TracerProviderOption) *Config

type Option

type Option func(c *Config)

Option 可选项

Jump to

Keyboard shortcuts

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