Skip to content

Commit f662adb

Browse files
committed
update formate
1 parent 971f968 commit f662adb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

telemetry/instrumentation/otelkitex/options.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,11 @@ func (fn option) apply(cfg *Config) {
3939
fn(cfg)
4040
}
4141

42-
type LabelFunc func(info rpcinfo.RPCInfo) []label.CwLabel
43-
4442
type Config struct {
4543
tracer trace.Tracer
4644
meter metric.Meter
4745

48-
labelFunc LabelFunc
46+
labelFunc func(info rpcinfo.RPCInfo) []label.CwLabel
4947
tracerProvider trace.TracerProvider
5048
meterProvider metric.MeterProvider
5149
textMapPropagator propagation.TextMapPropagator
@@ -108,7 +106,7 @@ func WithMeasure(measure cwmetric.Measure) Option {
108106
})
109107
}
110108

111-
func WithLabelFunc(labelFunc LabelFunc) Option {
109+
func WithLabelFunc(labelFunc func(info rpcinfo.RPCInfo) []label.CwLabel) Option {
112110
return option(func(cfg *Config) {
113111
cfg.labelFunc = labelFunc
114112
})

0 commit comments

Comments
 (0)