Documentation
¶
Index ¶
- func Echov3TracerMiddleware(service string) echov3.MiddlewareFunc
- func Echov4TracerMiddleware(service string) echo.MiddlewareFunc
- func GetTracer(serviceName string) otelTracer.Tracer
- func InitTracer(serviceName, env string, exporter trace.SpanExporter) func()
- func OTLPExporter(host, port string, headers map[string]string) *otlptrace.Exporter
- func StdOutExporter() *stdoutTrace.Exporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Echov3TracerMiddleware ¶ added in v0.0.5
func Echov3TracerMiddleware(service string) echov3.MiddlewareFunc
Echov3TracerMiddleware extracts and injects the trace for incoming HTTP requests to be propagated forward
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.