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

Instrument batching in opentelemetry_broadway #371

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mashton
Copy link

@mashton mashton commented Aug 30, 2024

Hooks into Broadway's batch processor start/stop events to add telemetry support to batching. Uses the the topology and batcher names to construct the span name. Span kind is :internal.

Unsurprisingly, OpenTelemetry.SemanticConventions has no opinions about attribute names for batch processing. Instead we've namespaced a few novel attributes with broadway.batch and include message count, failed message count, and successfully message count.

Copy link

linux-foundation-easycla bot commented Aug 30, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@mashton
Copy link
Author

mashton commented Aug 30, 2024

Hi folks, pardon me if just opening a PR out of the blue is not the done thing here. I didn't see any guidance otherwise. I'd love to contribute to this and other otel projects in the ecosystem.

Hooks into Broadway's batch processor start/stop events to add telemetry
support to batching. Uses the the `topology` and `batcher` names to
construct the span name. Span `kind` is :internal.

Unsurprisingly, OpenTelemetry.SemanticConventions has no opinions about attribute names
for batch processing. Instead we've namespaced a few novel attributes
with `broadway.batch` and include message count, failed message count,
and successfuly message count.
@mashton mashton force-pushed the instrument-batching-opentelemetry_broadway branch from b739ec4 to 32143da Compare September 5, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants