go.opentelemetry.io/otel/attribute.NewSet
third-partyThe 3389th most-called third-party function by production calls. Called 666 times across 39 modules; 176 of those run outside tests and generated code.
No change in production calls since 2026-W37.
All of go.opentelemetry.io/otel/attribute → Docs on pkg.go.dev ↗
- prod calls
- 176
- non-test, non-generated
- all calls
- 666
- total callsites
- modules
- 39
- distinct callers
- in loop
- 2%
- of prod calls
- in tests
- 74%
- 490 calls
- resolved
- 100%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Package function13%A direct call to an exported package function, resolved by type.
- Package function (by syntax)87%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into NewSet from notable Go projects. Open one on the map to see what else it hammers.
- gRPC 84 48%
- OpenTelemetry 52 30%
- Istio 6 3%
- Grafana 3 2%
- Docker 2 1%
where it's called
Callsites in the wild
12 representative callsites of 666, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
- in loop
- in loop test
-
google.golang.org/grpc @v1.84.0
stats/opentelemetry/csm/pluginoption_test.go:446
in loop test -
go.opentelemetry.io/otel @v1.46.0
attribute/set_test.go:98
in loop test - in loop test
-
go.opentelemetry.io/otel @v1.46.0
attribute/iterator_test.go:122
in loop test -
go.opentelemetry.io/otel @v1.46.0
attribute/iterator_test.go:123
in loop test -
otel/sdk/metric @v1.46.0
internal/aggregate/aggregate_test.go:183
in loop test -
go.opentelemetry.io/otel @v1.46.0
attribute/value_test.go:224
in loop test -
go.opentelemetry.io/otel @v1.46.0
attribute/value_test.go:224
in loop test
top callers
The modules that reach for it
The modules that call NewSet most in this snapshot.
- go.opentelemetry.io/otel/sdk/metric11217%
- github.com/grpc/grpc-go8713%
- google.golang.org/grpc8713%
- go.opentelemetry.io/otel/sdk497%
- go.opentelemetry.io/otel325%
siblings
More from go.opentelemetry.io/otel/attribute
The other most-called functions in this package. See all →