Add instrument provider caching #3527
Labels
area:metrics
Part of OpenTelemetry Metrics
enhancement
New feature or request
pkg:SDK
Related to an SDK package
Milestone
Split from #3245
Create a cache for the
instProvider
type and use it for this method:opentelemetry-go/sdk/metric/instrument_provider.go
Line 37 in 4146bd1
This will prevent the need for duplicate aggregator lookups when a user asks for the exact same instrument multiple times.
The text was updated successfully, but these errors were encountered: