We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca1dd5f commit 1917970Copy full SHA for 1917970
metrics/metrics.go
@@ -17,6 +17,7 @@ import (
17
"go.opentelemetry.io/otel/metric"
18
19
"go.opentelemetry.io/ebpf-profiler/libpf"
20
+ "go.opentelemetry.io/ebpf-profiler/vc"
21
)
22
23
var (
@@ -43,7 +44,8 @@ var (
43
44
metricTypes map[MetricID]MetricType
45
46
// OTel metric instrumentation
- meter = otel.Meter("go.opentelemetry.io/ebpf-profiler")
47
+ meter = otel.Meter("go.opentelemetry.io/ebpf-profiler",
48
+ metric.WithInstrumentationVersion(vc.Version()))
49
counters = map[MetricID]metric.Int64Counter{}
50
gauges = map[MetricID]metric.Int64Gauge{}
51
0 commit comments