Skip to content

Commit

Permalink
Merge pull request paritytech#4 from availproject/marko/extend-custom…
Browse files Browse the repository at this point in the history
…-telemetry

Marko/extend custom telemetry
  • Loading branch information
markopoloparadox authored May 14, 2024
2 parents bd728ff + 1c4ef5f commit b8f49aa
Show file tree
Hide file tree
Showing 2 changed files with 312 additions and 36 deletions.
10 changes: 8 additions & 2 deletions substrate/bin/node-template/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,16 @@ pub fn new_partial(config: &Configuration) -> Result<Service, ServiceError> {
});

let telemetry_handle = telemetry.as_ref().map(|t| t.handle());
let custom_telemetry_worker = CustomTelemetryWorker { handle: telemetry_handle, sampling_interval_ms: 6_000u128 };
let custom_telemetry_worker = CustomTelemetryWorker
{
handle: telemetry_handle,
sampling_interval_ms: 6_000u128,
max_interval_buffer_size: 20,
max_block_request_buffer_size: 15,
};
task_manager
.spawn_handle()
.spawn("custom_telemetry", None, custom_telemetry_worker.run());
.spawn("custom_telemetry", None, custom_telemetry_worker.run(None, None));

let select_chain = sc_consensus::LongestChain::new(backend.clone());

Expand Down
Loading

0 comments on commit b8f49aa

Please sign in to comment.