trace

package
v0.0.0-...-99a1077 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UNKNOWN_EXPORTER  OTLPExporterType = 0
	TLS_GRPC_EXPORTER OTLPExporterType = 1
	GRPC_EXPORTER     OTLPExporterType = 2
	HTTPS_EXPORTER    OTLPExporterType = 3
	HTTP_EXPORTER     OTLPExporterType = 4

	OTLP_GZIP_COMPRESSIONS OTLPCompression = "gzip"
)

Variables

This section is empty.

Functions

func LogMessage

func LogMessage(msg string) string

Types

type Headers

type Headers map[string]string

type OTLPCompression

type OTLPCompression string

type OTLPExporterType

type OTLPExporterType int32

type TraceBuilder

type TraceBuilder interface {
	WithApiKeyHeader() TraceBuilder
	AddHeader(key, value string) TraceBuilder
	WithHeaders(headers Headers) TraceBuilder
	Type(t OTLPExporterType) TraceBuilder
	Endpoint(s string) TraceBuilder
	WithTimeout(t time.Duration) TraceBuilder
	WithReconnection(t time.Duration) TraceBuilder
	WithCompression(c OTLPCompression) TraceBuilder
	Build(context.Context) (shutdown func(context.Context) error, err error)
}

func NewOTLP

func NewOTLP(cfg *env.Configs, logger logging.ILogger) TraceBuilder

Jump to

Keyboard shortcuts

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