rusticTracer

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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

func OTLPExporter(host, port string, headers map[string]string) *otlptrace.Exporter

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.

Jump to

Keyboard shortcuts

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