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>
This commit is contained in:
1 parent
362267470e
commit
2c83b28342
15 files changed
+695
-119
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user