mirror of
https://github.com/luxfi/metric.git
synced 2026-07-27 04:12:44 +00:00
The ZAP exporter speaks MetricFamily, the shape a Prometheus gatherer yields. A service instrumented with the OTel metric SDK produces ResourceMetrics, so it had no way onto this wire and reached for an OTLP exporter — which pulls protobuf and gRPC whether you pick the http flavour or the grpc one, since they share otlpconfig. OTelZAPExporter is that seam: it satisfies sdkmetric.Exporter and installs on a periodic reader exactly where an OTLP exporter would. Histograms decompose into classic cumulative buckets rather than a sketch, because the wire carries Prometheus shapes and the o11y query plane already reads them. Temporality is cumulative for every instrument for the same reason — a delta sum means nothing to a Prometheus reader. An aggregation this wire cannot express drops at one place, visibly, instead of arriving empty.
45 lines
1.5 KiB
AMPL
45 lines
1.5 KiB
AMPL
module github.com/luxfi/metric
|
|
|
|
go 1.26.4
|
|
|
|
require (
|
|
github.com/gorilla/rpc v1.2.1
|
|
github.com/luxfi/filesystem v0.0.1
|
|
github.com/luxfi/zap v1.2.6
|
|
github.com/stretchr/testify v1.11.1
|
|
go.opentelemetry.io/otel v1.44.0
|
|
go.opentelemetry.io/otel/sdk/metric v1.44.0
|
|
golang.org/x/sync v0.20.0
|
|
google.golang.org/protobuf v1.36.11
|
|
)
|
|
|
|
require (
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/go-logr/logr v1.4.3 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
|
|
go.opentelemetry.io/otel/metric v1.44.0 // indirect
|
|
go.opentelemetry.io/otel/sdk v1.44.0 // indirect
|
|
go.opentelemetry.io/otel/trace v1.44.0 // indirect
|
|
)
|
|
|
|
require (
|
|
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
|
|
github.com/cloudflare/circl v1.6.3 // indirect
|
|
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
|
github.com/google/renameio/v2 v2.0.2 // indirect
|
|
github.com/grandcat/zeroconf v1.0.0 // indirect
|
|
github.com/luxfi/accel v1.2.4 // indirect
|
|
github.com/luxfi/crypto v1.20.2 // indirect
|
|
github.com/luxfi/mdns v0.1.1 // indirect
|
|
github.com/miekg/dns v1.1.72 // indirect
|
|
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
|
golang.org/x/crypto v0.52.0 // indirect
|
|
golang.org/x/mod v0.36.0 // indirect
|
|
golang.org/x/net v0.55.0 // indirect
|
|
golang.org/x/sys v0.45.0 // indirect
|
|
golang.org/x/tools v0.45.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
)
|