Skip to content

Conversation

@philipglazman
Copy link
Contributor

No description provided.

if let Some(ref source) = data_source {
wait_attributes.push(KeyValue::new("chainstate_source", source.clone()));
}
timing.histogram.record(timing.wait_time, &wait_attributes);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this looks somewhat hackish, if needed urgently it is probably ok.

i plugged into tracing, so that i can get wait time for async spans, but otherwise spans can be extended with necessary API.

i think i would try to add Span::current().add_extra_timing_label(key, value), that can be accumulated into some array and then exported. impl for add_extra_timing_label should be somewhat similar to update_secondary. there are also tests that can be used to verify that it works as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants