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: add instrumentation opentelemetry #35

Merged
merged 11 commits into from
Sep 30, 2024
Merged

Conversation

deryrahman
Copy link
Member

No description provided.

@deryrahman deryrahman marked this pull request as draft September 26, 2024 07:18
@deryrahman deryrahman changed the title Draft: feat: add instrumentation opentelemetry feat: add instrumentation opentelemetry Sep 26, 2024
@deryrahman deryrahman marked this pull request as ready for review September 30, 2024 03:26
@deryrahman deryrahman requested a review from sbchaos September 30, 2024 03:26
Comment on lines 35 to 38
l.queryCounter.Add(context.Background(), 1, metric.WithAttributes(
attribute.String("method", "GetQuery"),
attribute.String("tableID", tableID),
))
Copy link

Choose a reason for hiding this comment

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

Do we need a telemetry for this function ? I does not include any external calls.

Copy link
Member Author

Choose a reason for hiding this comment

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

this is just a sample for sending telemetry metrics to collector, I'll remove it as it's not necessary

@deryrahman deryrahman merged commit 845ea13 into main Sep 30, 2024
2 checks passed
@deryrahman deryrahman deleted the add-instrumentation branch November 11, 2024 12:03
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