Release v1.0.0: HTTP instrumentation, slog correlation, TLS by default
CI / test (push) Successful in 1m17s
Publish / publish (push) Successful in 1m24s

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>
This commit is contained in:
Aleksey ShakhmatovandClaude committed 2026-11-10 20:20:09 +03:00
1 parent 362267470e
commit 2c83b28342
15 files changed
+695 -119

No files matched your search

+3
View File
@@ -39,6 +39,9 @@ func TestSetupTracer_SetsGlobalProvider(t *testing.T) {
if _, ok := tp.(*sdktrace.TracerProvider); !ok {
t.Errorf("expected *sdktrace.TracerProvider, got %T", tp)
}
if f := otel.GetTextMapPropagator().Fields(); len(f) == 0 {
t.Error("expected a global propagator to be installed")
}
}
func TestSetupTracer_DefaultSampler(t *testing.T) {