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

feat: Added supportability metrics Supportability/Features/Instrumentation/kafkajs/<method> to track when consumer and producer methods are being used #2251

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

bizob2828
Copy link
Member

Description

Most tracking metrics were easy as we already instrumented. For eachBatch i wrapped it and only log tracking metric. I will add PR to angler to start tracking these metrics.

How to Test

npm run versioned:internal kafkajs

Related Issues

Closes #2247

…tation/kafkajs/<method>` to track when consumer and producer methods are being used
@bizob2828 bizob2828 force-pushed the supportability-metrics branch from 5d25f29 to 64af0bd Compare June 5, 2024 21:07
Copy link
Contributor

@jsumners-nr jsumners-nr 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 to me.

Comment on lines +21 to +22
instrumentConsumer({ shim, kafkajs, recordMethodMetric })
instrumentProducer({ shim, kafkajs, recordMethodMetric })
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know why I enjoy seeing object params pay off, but I do 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
2 participants