Repository navigation
Commit 6fdcf82
feat: add self-observability metrics to otlpmetricgrpc metric exporters (#8192)
Fixes #7012
This updates
#7120, and
addresses outstanding comments. See commit descriptions for the changes
made on top of that PR. Credit to minimAluminiumalism for the initial
work.
Benchmark results:
```
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/observ
cpu: Intel(R) Xeon(R) CPU @ 2.20GHz
│ bench_feature.txt │
│ sec/op │
InstrumentationTrackExport/EnabledNoError-24 1.045µ ± 5%
InstrumentationTrackExport/EnabledError-24 2.248µ ± 1%
InstrumentationTrackExport/Disabled-24 9.643n ± 1%
geomean 282.9n
│ bench_feature.txt │
│ B/op │
InstrumentationTrackExport/EnabledNoError-24 160.0 ± 0%
InstrumentationTrackExport/EnabledError-24 488.0 ± 0%
InstrumentationTrackExport/Disabled-24 0.000 ± 0%
geomean ¹
¹ summaries must be >0 to compute geomean
│ bench_feature.txt │
│ allocs/op │
InstrumentationTrackExport/EnabledNoError-24 5.000 ± 0%
InstrumentationTrackExport/EnabledError-24 6.000 ± 0%
InstrumentationTrackExport/Disabled-24 0.000 ± 0%
geomean ¹
¹ summaries must be >0 to compute geomean
```
Written with assistance from Gemini.
---------
Co-authored-by: minimAluminiumalism <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Robert Pająk <[email protected]>1 parent 761bbfc commit 6fdcf82
16 files changed
Lines changed: 2134 additions & 3 deletions
File tree
- exporters/otlp/otlpmetric/otlpmetricgrpc
- internal
- counter
- observ
- x
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
49 | 68 | | |
50 | 69 | | |
51 | 70 | | |
52 | 71 | | |
53 | 72 | | |
54 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
55 | 76 | | |
56 | 77 | | |
57 | 78 | | |
| |||
72 | 93 | | |
73 | 94 | | |
74 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
75 | 103 | | |
76 | 104 | | |
77 | | - | |
| 105 | + | |
78 | 106 | | |
| 107 | + | |
79 | 108 | | |
80 | 109 | | |
81 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
0 commit comments