Skip to content

Commit 1c25a20

Browse files
authored
Merge branch 'main' into fix-3439
2 parents c6b7069 + 88f6000 commit 1c25a20

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

sdk/metric/pipeline.go

-10
Original file line numberDiff line numberDiff line change
@@ -119,20 +119,10 @@ func (p *pipeline) addMultiCallback(c multiCallback) (unregister func()) {
119119
}
120120
}
121121

122-
// callbackKey is a context key type used to identify context that came from the SDK.
123-
type callbackKey int
124-
125-
// produceKey is the context key to tell if a Observe is called within a callback.
126-
// Its value of zero is arbitrary. If this package defined other context keys,
127-
// they would have different integer values.
128-
const produceKey callbackKey = 0
129-
130122
// produce returns aggregated metrics from a single collection.
131123
//
132124
// This method is safe to call concurrently.
133125
func (p *pipeline) produce(ctx context.Context) (metricdata.ResourceMetrics, error) {
134-
ctx = context.WithValue(ctx, produceKey, struct{}{})
135-
136126
p.Lock()
137127
defer p.Unlock()
138128

0 commit comments

Comments
 (0)