Tracing: Fix OpenTelemetry Jaeger context propagation (#53269)
* fix otel jaeger context propagation * add back launch.json * add back launch.json
This commit is contained in:
@@ -96,11 +96,11 @@ func (ots *Opentelemetry) parseSettingsOpentelemetry() error {
|
||||
ots.enabled = noopExporter
|
||||
|
||||
ots.address = section.Key("address").MustString("")
|
||||
ots.propagation = section.Key("propagation").MustString("")
|
||||
if ots.address != "" {
|
||||
ots.enabled = jaegerExporter
|
||||
return nil
|
||||
}
|
||||
ots.propagation = section.Key("propagation").MustString("")
|
||||
|
||||
section, err = ots.Cfg.Raw.GetSection("tracing.opentelemetry.otlp")
|
||||
if err != nil {
|
||||
@@ -234,7 +234,7 @@ func (ots *Opentelemetry) Run(ctx context.Context) error {
|
||||
}
|
||||
|
||||
func (ots *Opentelemetry) Start(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, Span) {
|
||||
ctx, span := ots.tracer.Start(ctx, spanName)
|
||||
ctx, span := ots.tracer.Start(ctx, spanName, opts...)
|
||||
opentelemetrySpan := OpentelemetrySpan{
|
||||
span: span,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user