File tree 1 file changed +0
-10
lines changed
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -119,20 +119,10 @@ func (p *pipeline) addMultiCallback(c multiCallback) (unregister func()) {
119
119
}
120
120
}
121
121
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
-
130
122
// produce returns aggregated metrics from a single collection.
131
123
//
132
124
// This method is safe to call concurrently.
133
125
func (p * pipeline ) produce (ctx context.Context ) (metricdata.ResourceMetrics , error ) {
134
- ctx = context .WithValue (ctx , produceKey , struct {}{})
135
-
136
126
p .Lock ()
137
127
defer p .Unlock ()
138
128
You can’t perform that action at this time.
0 commit comments