Registry / observability / otel-metric

otel-metric

JSON →
library1.44.0gogounverified

Provides the OpenTelemetry metric API for instrumenting Go applications with metrics.

go get go.opentelemetry.io/otel/metric
INSTALL
IMPORT
SIG · OTEL-METRIC
O
otel-metric
observabilitygov1.44.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

metric
go.opentelemetry.io/otel/metric

Creates a counter and increments it.

package main import ( "context" "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel" ) func main() { meter := otel.Meter("example") counter, _ := meter.Int64Counter("my.counter") counter.Add(context.Background(), 1) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.44.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
2
Resources
otel-metric — go get otel-metric · libregistry