1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-26 21:05:00 +02:00
opentelemetry-go/metric
Tyler Yahn 99c3c661e0
Use auto-instrumentation SDK in global tracing (#5920)
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)
```
2024-11-21 10:54:58 -08:00
..
embedded Add the synchronous gauge to the metric API and SDK (#5304) 2024-05-16 09:56:40 -07:00
noop [chore]: enable expected-actual rule from testifylint (#5848) 2024-09-26 12:04:33 +02:00
asyncfloat64_test.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
asyncfloat64.go Fix typos (#5763) 2024-09-09 08:53:15 +02:00
asyncint64_test.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
asyncint64.go Fix typos (#5763) 2024-09-09 08:53:15 +02:00
config_test.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
config.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
doc.go Document instrument name requirements (#5435) 2024-05-30 13:59:58 -07:00
example_test.go Fix lint issues for golangci-lint 1.62.0 (#5967) 2024-11-13 08:58:59 +01:00
go.mod Use auto-instrumentation SDK in global tracing (#5920) 2024-11-21 10:54:58 -08:00
go.sum Use auto-instrumentation SDK in global tracing (#5920) 2024-11-21 10:54:58 -08:00
instrument_test.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
instrument.go doc(metric): fix incorrect explanation of how metric.WithAttributes works (#5822) 2024-09-16 09:09:28 +02:00
meter.go Fix interfaces doc formatting (#5658) 2024-08-05 21:14:00 +02:00
README.md Add READMEs to every package (#5103) 2024-03-26 20:13:54 +01:00
syncfloat64_test.go Add the synchronous gauge to the metric API and SDK (#5304) 2024-05-16 09:56:40 -07:00
syncfloat64.go Add the synchronous gauge to the metric API and SDK (#5304) 2024-05-16 09:56:40 -07:00
syncint64_test.go Add the synchronous gauge to the metric API and SDK (#5304) 2024-05-16 09:56:40 -07:00
syncint64.go Add the synchronous gauge to the metric API and SDK (#5304) 2024-05-16 09:56:40 -07:00

Metric API

PkgGoDev