Categorygithub.com/polymerdao/telemetry
modulepackage
0.2.6
Repository: https://github.com/polymerdao/telemetry.git
Documentation: pkg.go.dev

# README

telemetry

A shared library for setting up logs and traces using Open Telemetry

# Functions

GetResource returns the configured resource with all detected attributes.
GetTelemetryParentContext creates a new context with OpenTelemetry trace context from a traceID.
InitTracer initializes the OpenTelemetry tracer with google exporter and a drop span processor.
NewDropSpanProcessor returns a custom span processor that drops spans with the DropSpanAttribute set.
No description provided by the author
SetupZapLogging configures a Zap logger with OpenTelemetry integration and sets it as the global logger.
TracingMiddleware wraps an http.Handler with OpenTelemetry tracing.
WithTraceContext creates a new logger with OpenTelemetry trace context added as fields.

# Variables

No description provided by the author