Skip to content

fix(observability): Improve topology tracing spans#1123

Merged
LucioFranco merged 2 commits intomasterfrom
lucio/tracing-fixes
Oct 31, 2019
Merged

fix(observability): Improve topology tracing spans#1123
LucioFranco merged 2 commits intomasterfrom
lucio/tracing-fixes

Conversation

@LucioFranco
Copy link
Copy Markdown
Contributor

This change improves the output of tracing spans. Span's now include the source/transform/sink type.

image

This internally refactors our topology Task type to include metadata.

Signed-off-by: Lucio Franco luciofranco14@gmail.com

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
Copy link
Copy Markdown
Member

@lukesteensen lukesteensen left a comment

Choose a reason for hiding this comment

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

This was super easy to review, thanks! Nice minimal change.

for (name, source) in &config.sources {
let (tx, rx) = mpsc::channel(1000);

let typetag = source.source_type();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What made you decide not to get these from typetag?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Well we have SinkOutter etc that trait objectized really early and not allowing us to call the inhernt method. So I figured this was easier.

@LucioFranco LucioFranco merged commit 5576680 into master Oct 31, 2019
@LucioFranco LucioFranco deleted the lucio/tracing-fixes branch October 31, 2019 16:07
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.

2 participants