Skip to content

Commit f8aeae8

Browse files
committed
remove dead code
Signed-off-by: alex boten <[email protected]>
1 parent 1be6d2f commit f8aeae8

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

otelconf/config_common.go

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -141,29 +141,6 @@ func unmarshalSamplerTypes(raw map[string]any, plain *Sampler) {
141141
}
142142
}
143143

144-
// unmarshalTextMapPropagatorTypes handles all propagator type unmarshaling.
145-
func unmarshalTextMapPropagatorTypes(raw map[string]any, plain *TextMapPropagator) {
146-
// b3 can be nil, must check and set here
147-
if v, ok := raw["b3"]; ok && v == nil {
148-
plain.B3 = B3Propagator{}
149-
}
150-
if v, ok := raw["b3multi"]; ok && v == nil {
151-
plain.B3Multi = B3MultiPropagator{}
152-
}
153-
if v, ok := raw["baggage"]; ok && v == nil {
154-
plain.Baggage = BaggagePropagator{}
155-
}
156-
if v, ok := raw["jaeger"]; ok && v == nil {
157-
plain.Jaeger = JaegerPropagator{}
158-
}
159-
if v, ok := raw["ottrace"]; ok && v == nil {
160-
plain.Ottrace = OpenTracingPropagator{}
161-
}
162-
if v, ok := raw["tracecontext"]; ok && v == nil {
163-
plain.Tracecontext = TraceContextPropagator{}
164-
}
165-
}
166-
167144
// unmarshalMetricProducer handles opencensus metric producer unmarshaling.
168145
func unmarshalMetricProducer(raw map[string]any, plain *MetricProducer) {
169146
// opencensus can be nil, must check and set here

0 commit comments

Comments
 (0)