Add HTTPMiddleware, HTTPTransport and LogHandler; extend TracerConfig with Insecure, Headers and Attributes; install W3C propagators; parent-based sampling; end-to-end OTLP export tests; update dependencies (Go 1.26). Breaking since v0.2.0: the OTLP connection uses TLS unless Insecure is set. Co-Authored-By: Claude <noreply@anthropic.com>
983 B
983 B
Changelog
v1.0.0
The API is stable from this release on (semantic versioning).
Added
HTTPMiddleware— server spans with trace continuation plushttp_requests_totalandhttp_request_duration_secondsmetrics.HTTPTransport— client spans and trace context propagation for outgoing requests.LogHandler—slog.Handlerwrapper addingtrace_id/span_idto records.TracerConfig.Insecure,TracerConfig.Headers,TracerConfig.Attributes.SetupTracerinstalls W3C TraceContext + Baggage propagators and honoursOTEL_EXPORTER_OTLP_*/OTEL_RESOURCE_ATTRIBUTES.
Changed (breaking since v0.2.0)
- OTLP connection uses TLS by default. Set
TracerConfig.Insecure: truefor plaintext collectors — previously the connection was always insecure. - Sampling is parent-based:
Samplerapplies to root traces, child spans follow the parent's decision. StartSpaninstrumentation scope isgit.codelab.vc/pkg/obsx(wasobsx).