Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Jaeger spans for availability distribution#2559

Merged
14 commits merged intomasterfrom
rk-jaeger-2306
Mar 4, 2021
Merged

Jaeger spans for availability distribution#2559
14 commits merged intomasterfrom
rk-jaeger-2306

Conversation

@eskimor
Copy link
Member

@eskimor eskimor commented Mar 4, 2021

Closes #2551

  • Introduces logging wrapper for mick_jaeger logging facility.
  • Also fixes instrumentation macros to use log target properly.

@eskimor eskimor added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Mar 4, 2021
.with_chunk_index(self.request.index.0)
.with_relay_parent(&self.relay_parent)
.build();
let mut span_log = _span.log();
Copy link
Contributor

Choose a reason for hiding this comment

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

As discussed, we want to stick to tags and the builder API for now.

Copy link
Contributor

@drahnr drahnr left a comment

Choose a reason for hiding this comment

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

A few nits about using int tags rather than logs, other than that looks good, we might want to have a few more child span to get a bit more detail for dot-jaeger.

Does fields(target = have side effects for the consumer of the tracing::Spans?

Co-authored-by: Andronik Ordian <write@reusable.software>
}

/// Add an additional int tag to the span.
pub fn add_int_tag(&mut self, tag: &str, value: i64) {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@eskimor
Copy link
Member Author

eskimor commented Mar 4, 2021

bot merge

@ghost
Copy link

ghost commented Mar 4, 2021

Waiting for commit status.

@ghost ghost merged commit 58ff7f5 into master Mar 4, 2021
@ghost ghost deleted the rk-jaeger-2306 branch March 4, 2021 17:03
ordian added a commit that referenced this pull request Mar 9, 2021
* master:
  Make Substrate deps uniform (#2589)
  Mostly, let guide reflect #2579 (#2583)
  add accountkey20 conversion impls (#2576)
  Substrate companion #8275 (#2575)
  Make warning nicer (#2569)
  Print an error if a collator connects to a node without real-overseer (#2563)
  add log message when real-overseer is enabled (#2565)
  Jaeger spans for availability distribution (#2559)
  Fix links in docs. (#2556)
  bump spec versions in kusama, polkadot and westend again (#2557)
  Guide update for availability distribution. (#2554)
  Whole subsystem test for new availability-distribution (#2552)
  Companion for `ExecuteBlock` changes in Substrate (#2548)
  Initialize telemetry earlier (#2549)
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add back Jaeger spans to availability distribution

3 participants