Documentation
¶
Overview ¶
Package oteltrace provides helpers for otel tracing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNoopTracer ¶ added in v0.1.8
NewNoopTracer creates a No-Op Tracer.
func TraceStart ¶
func TraceStart(options TraceOptions) (trace.Tracer, func(), error)
TraceStart initializes tracing.
These env vars become available for customization at runtime:
# Example for Jaeger export OTELCONFIG_EXPORTER=jaeger export OTEL_TRACES_EXPORTER=jaeger export OTEL_PROPAGATORS=b3multi export OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger-collector:14268 # Example for gRPC and OTLP export OTELCONFIG_EXPORTER=grpc export OTEL_TRACES_EXPORTER=otlp export OTEL_PROPAGATORS=b3multi export OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger-collector:4317 # Example for HTTP and OTLP export OTELCONFIG_EXPORTER=http export OTEL_TRACES_EXPORTER=otlp export OTEL_PROPAGATORS=b3multi export OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger-collector:4318
Types ¶
Click to show internal directories.
Click to hide internal directories.