mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-26 21:05:00 +02:00
99c3c661e0
When the auto-instrumentation attaches to a process using the global TracerProvider, and there has not been a delegate set, create a span from the go.opentelemetry.io/auto/sdk package so the OTel Go auto-instrumentation can instrument the application by default. Resolve #5702 ### Benchmarks ```terminal goos: linux goarch: amd64 pkg: go.opentelemetry.io/otel/internal/global cpu: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz │ old.txt │ new.txt │ │ sec/op │ sec/op vs base │ StartEndSpanNoSDK-8 244.2n ± 21% 250.2n ± 23% ~ (p=0.739 n=10) ``` |
||
---|---|---|
.. | ||
embedded | ||
noop | ||
asyncfloat64_test.go | ||
asyncfloat64.go | ||
asyncint64_test.go | ||
asyncint64.go | ||
config_test.go | ||
config.go | ||
doc.go | ||
example_test.go | ||
go.mod | ||
go.sum | ||
instrument_test.go | ||
instrument.go | ||
meter.go | ||
README.md | ||
syncfloat64_test.go | ||
syncfloat64.go | ||
syncint64_test.go | ||
syncint64.go |