Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Echov4TracerMiddleware ¶
func Echov4TracerMiddleware(service string) echo.MiddlewareFunc
Echov4TracerMiddleware extracts and injects the trace for incoming HTTP requests to be propagated forward
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 ¶
OTLPExporter Uses OpenTelemetry’s standard OTLP/gRPC or HTTP with host/port
func StdOutExporter ¶
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.