You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if config.instrumentation.spans.mode == SpanMode::Deprecated{
384
400
::tracing::warn!(
385
401
"telemetry.instrumentation.spans.mode is currently set to 'deprecated', either explicitly or via defaulting. Set telemetry.instrumentation.spans.mode explicitly in your router.yaml to 'spec_compliant' for log and span attributes that follow OpenTelemetry semantic conventions. This option will be defaulted to 'spec_compliant' in a future release and eventually removed altogether"
@@ -1171,8 +1187,10 @@ impl PluginPrivate for Telemetry {
1171
1187
.take()
1172
1188
.expect("must have new tracer_provider");
1173
1189
1174
-
let tracer = tracer_provider
1175
-
.tracer(GLOBAL_TRACER_NAME);
1190
+
let scope = InstrumentationScope::builder(GLOBAL_TRACER_NAME)
1191
+
.with_version(env!("CARGO_PKG_VERSION"))
1192
+
.build();
1193
+
let tracer = tracer_provider.tracer_with_scope(scope);
1176
1194
hot_tracer.reload(tracer);
1177
1195
1178
1196
let last_provider = opentelemetry::global::set_tracer_provider(tracer_provider);
0 commit comments