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

Add a single top level span for Racecar consumers #1150

Merged
merged 2 commits into from
Aug 24, 2020

Conversation

dasch
Copy link
Contributor

@dasch dasch commented Aug 19, 2020

Right now, Racecar consumer processes use one of two top level span names based on the mode of operation: racecar.message orracecar.batch. Because of this, the Datadog interface cannot show single message consumers and batch consumers in the same list.

This change subscribes to the main_loop event which wraps both of these more specific events. The new span is called racecar.consume since that is the logical operation.

Right now, Racecar consumer processes use one of two top level span
names based on the mode of operation: `racecar.message` or
`racecar.batch`. Because of this, the Datadog interface cannot show
single message consumers and batch consumers in the same list.

This change subscribes to the `main_loop` event which wraps both of
these more specific events. The new span is called `racecar.consume`
since that is the logical operation.
@dasch dasch requested a review from a team August 19, 2020 09:05
@marcotc
Copy link
Member

marcotc commented Aug 20, 2020

Hey @dasch, the changes look like a straightforward improvement, thank you!

One think I'd like to ask for you is the additional of tests for this new span, similar to what we have today for batch and message.

@marcotc marcotc added community Was opened by a community member feature Involves a product feature integrations Involves tracing integrations labels Aug 20, 2020
@dasch dasch force-pushed the dasch-racecar-single-toplevel-span branch from 82e0b5a to 3b16692 Compare August 21, 2020 09:23
Copy link
Member

@marcotc marcotc left a comment

Choose a reason for hiding this comment

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

:shipit: Thank you very much @dasch!

@dasch
Copy link
Contributor Author

dasch commented Aug 24, 2020

@marcotc should be ready to go 👍

@marcotc marcotc merged commit ecdb524 into DataDog:master Aug 24, 2020
@marcotc marcotc added this to the 0.40.0 milestone Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Was opened by a community member feature Involves a product feature integrations Involves tracing integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants