telemetry

package
v0.0.0-...-b400081 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TraceExpoterJaeger traceExporterType = iota + 1
)

Variables

This section is empty.

Functions

func StartJaegerTracing

func StartJaegerTracing(serviceName, collectorEndpoint string) (flush func(), err error)

StartJaegerTracing starts opentelemety jaeger exporter and sets it as global tracing exporter.

func StartTelemetry

func StartTelemetry(sr application.StopRegistrar, options *SetupTelemetryOptions) error

Types

type SetupTelemetryOptions

type SetupTelemetryOptions struct {
	ServiceName string

	TraceExporter *TraceExporterOptions
}

type TraceExporterOptions

type TraceExporterOptions struct {
	CollectorEndpoint string
	ExporeterType     traceExporterType
}

Jump to

Keyboard shortcuts

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