Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTracer ¶
func GetTracer(serviceName string) otelTracer.Tracer
GetTracer returns the global tracer initialised for the serviceName
func InitTracer ¶
func InitTracer(serviceName, env string, exporter trace.SpanExporter) func()
InitTracer initialises the otel tracer for a serviceName and env with exporter of choice
func OTLPExporter ¶ added in v0.0.3
OTLPExporter Uses OpenTelemetry’s standard OTLP/gRPC or HTTP with host/port
func StdOutExporter ¶ added in v0.0.3
func StdOutExporter() *stdoutTrace.Exporter
StdOutExporter outputs the traces to the stdout
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.