opentelemetrytraces

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JaegerExporter = "jaeger"
	NoOpExporter   = "noop"
	StdoutExporter = "stdout"
	OTLPExporter   = "otlp"
)
View Source
const (
	JaegerCollectorEndpointGroupKey = `group:"_tracerCollectorEndpointOptions"`
)
View Source
const OTLPTracerGRPCOptionsKey = `group:"_otlpTracerGrpcOptions"`
View Source
const OTLPTracerHTTPOptionsKey = `group:"_otlpTracerHTTPOptions"`

Variables

This section is empty.

Functions

func JaegerTracerModule

func JaegerTracerModule() fx.Option

func LoadJaegerTracerProvider

func LoadJaegerTracerProvider(resourceFactory *resourceFactory, options ...jaeger.CollectorEndpointOption) (*tracesdk.TracerProvider, error)

func LoadNoOpTracerProvider

func LoadNoOpTracerProvider() trace.TracerProvider

func LoadOTLPTracerGRPCClient

func LoadOTLPTracerGRPCClient(options ...otlptracegrpc.Option) otlptrace.Client

func LoadOTLPTracerHTTPClient

func LoadOTLPTracerHTTPClient(options ...otlptracehttp.Option) otlptrace.Client

func LoadOTLPTracerProvider

func LoadOTLPTracerProvider(f *resourceFactory, client otlptrace.Client) (*tracesdk.TracerProvider, error)

func LoadStdoutTracerProvider

func LoadStdoutTracerProvider(f *resourceFactory) (*tracesdk.TracerProvider, error)

func Middleware added in v1.0.4

func Middleware() func(context *gin.Context)

func NewResourceFactory

func NewResourceFactory(attributes ...attribute.KeyValue) *resourceFactory

func NewStorageDecorator

func NewStorageDecorator(underlying storage.Store) *openTelemetryStorage

func NoOpTracerModule

func NoOpTracerModule() fx.Option

func OTLPTracerGRPCClientModule

func OTLPTracerGRPCClientModule() fx.Option

func OTLPTracerHTTPClientModule

func OTLPTracerHTTPClientModule() fx.Option

func OTLPTracerModule

func OTLPTracerModule() fx.Option

func ProvideJaegerTracerCollectorEndpoint

func ProvideJaegerTracerCollectorEndpoint(provider interface{}) fx.Option

func ProvideOTLPAttribute

func ProvideOTLPAttribute(attr attribute.KeyValue) fx.Option

func ProvideOTLPTracerGRPCClientOption

func ProvideOTLPTracerGRPCClientOption(provider interface{}) fx.Option

func ProvideOTLPTracerHTTPClientOption

func ProvideOTLPTracerHTTPClientOption(provider interface{}) fx.Option

func ResourceFactoryModule

func ResourceFactoryModule() fx.Option

func StdoutTracerModule

func StdoutTracerModule() fx.Option

func TracesModule

func TracesModule(cfg ModuleConfig) fx.Option

func WrapStorageFactory

func WrapStorageFactory(underlying storage.Factory) *openTelemetryStorageFactory

Types

type JaegerConfig

type JaegerConfig struct {
	Endpoint string
	User     string
	Password string
}

type ModuleConfig

type ModuleConfig struct {
	ServiceName  string
	Version      string
	Exporter     string
	JaegerConfig *JaegerConfig
	OTLPConfig   *OTLPConfig
}

type OTLPConfig

type OTLPConfig struct {
	Mode     string
	Endpoint string
	Insecure bool
}

Jump to

Keyboard shortcuts

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