Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report zipkin spans regardless of goal version. #7915

Merged
merged 2 commits into from Jun 24, 2019

Conversation

hrfuller
Copy link
Member

@hrfuller hrfuller commented Jun 20, 2019

Problem

fixes #7386

Goals which use the v2 engine were not exporting zipkin spans because the code doing the exporting was inside the context of the legacy graph, which isn't used during v2 engine goal execution.

Solution

Moved the zipkin bulk export code to the local pants runner so that it gets called regardless of which engine is run.

Result

Users can now see spans / timings from engine workunits displayed through zipkin dash for both v1 and v2 goals.

Copy link
Sponsor Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good.

Will merge on green CI.

Copy link
Contributor

@cattibrie cattibrie left a comment

Choose a reason for hiding this comment

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

Thank you for this PR!!!
I am still in the process of reviewing. Will leave other comments later.

Copy link
Contributor

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks!

src/python/pants/bin/local_pants_runner.py Outdated Show resolved Hide resolved
@illicitonion illicitonion merged commit af9e2ad into pantsbuild:master Jun 24, 2019
@hrfuller hrfuller deleted the hfuller/fix-zipkin-metrics branch June 24, 2019 17: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.

Scheduler metrics don't get collected in pure v2 mode
4 participants