Files
obsx/CHANGELOG.md
T
Aleksey ShakhmatovandClaude 2c83b28342
CI / test (push) Successful in 1m17s
Publish / publish (push) Successful in 1m24s
Release v1.0.0: HTTP instrumentation, slog correlation, TLS by default
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>
2026-11-10 20:20:09 +03:00

20 lines
983 B
Markdown

# Changelog
## v1.0.0
The API is stable from this release on (semantic versioning).
### Added
- `HTTPMiddleware` — server spans with trace continuation plus `http_requests_total` and `http_request_duration_seconds` metrics.
- `HTTPTransport` — client spans and trace context propagation for outgoing requests.
- `LogHandler` — `slog.Handler` wrapper adding `trace_id` / `span_id` to records.
- `TracerConfig.Insecure`, `TracerConfig.Headers`, `TracerConfig.Attributes`.
- `SetupTracer` installs W3C TraceContext + Baggage propagators and honours `OTEL_EXPORTER_OTLP_*` / `OTEL_RESOURCE_ATTRIBUTES`.
### Changed (breaking since v0.2.0)
- **OTLP connection uses TLS by default.** Set `TracerConfig.Insecure: true` for plaintext collectors — previously the connection was always insecure.
- Sampling is parent-based: `Sampler` applies to root traces, child spans follow the parent's decision.
- `StartSpan` instrumentation scope is `git.codelab.vc/pkg/obsx` (was `obsx`).