File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
telemetry/instrumentation/otelkitex Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,11 @@ func (fn option) apply(cfg *Config) {
39
39
fn (cfg )
40
40
}
41
41
42
- type LabelFunc func (info rpcinfo.RPCInfo ) []label.CwLabel
43
-
44
42
type Config struct {
45
43
tracer trace.Tracer
46
44
meter metric.Meter
47
45
48
- labelFunc LabelFunc
46
+ labelFunc func ( info rpcinfo. RPCInfo ) []label. CwLabel
49
47
tracerProvider trace.TracerProvider
50
48
meterProvider metric.MeterProvider
51
49
textMapPropagator propagation.TextMapPropagator
@@ -108,7 +106,7 @@ func WithMeasure(measure cwmetric.Measure) Option {
108
106
})
109
107
}
110
108
111
- func WithLabelFunc (labelFunc LabelFunc ) Option {
109
+ func WithLabelFunc (labelFunc func ( info rpcinfo. RPCInfo ) []label. CwLabel ) Option {
112
110
return option (func (cfg * Config ) {
113
111
cfg .labelFunc = labelFunc
114
112
})
You can’t perform that action at this time.
0 commit comments