Unverified Commit dbdd2450 authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Initialize telemetry earlier (#2549)

This fixes a bug in block import not reporting to the telemetry.
parent 51655c3e
Pipeline #126575 failed with stages
in 37 minutes and 54 seconds
......@@ -572,6 +572,9 @@ pub fn new_full<RuntimeApi, Executor>(
RuntimeApiCollection<StateBackend = sc_client_api::StateBackendFor<FullBackend, Block>>,
Executor: NativeExecutionDispatch + 'static,
{
let telemetry_span = TelemetrySpan::new();
let _telemetry_span_entered = telemetry_span.enter();
let role = config.role.clone();
let force_authoring = config.force_authoring;
let backoff_authoring_blocks =
......@@ -662,9 +665,6 @@ pub fn new_full<RuntimeApi, Executor>(
cache_size: None, // default is fine.
};
let telemetry_span = TelemetrySpan::new();
let _telemetry_span_entered = telemetry_span.enter();
let (rpc_handlers, telemetry_connection_notifier) = service::spawn_tasks(service::SpawnTasksParams {
config,
backend: backend.clone(),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment