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: custom attributes in otel task metrics #9

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

heilhead
Copy link
Collaborator

@heilhead heilhead commented Oct 9, 2023

Description

This adds custom attributes support to OtelTaskMetricsRecorder. Currently, the attributes are stored in a SmallVec with the size of 2, since they're rather big (72 bytes). If we ever have a use case for more custom attributes, we should increase the capacity here, rather than rely on heap allocation.

How Has This Been Tested?

Integration into the IRN.

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

Copy link
Member

@xDarksome xDarksome 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, there are some clippy warnings though

@heilhead
Copy link
Collaborator Author

heilhead commented Oct 9, 2023

Huh, interesting, just lint showed nothing. Will update, thanks!

@xDarksome
Copy link
Member

Huh, interesting, just lint showed nothing. Will update, thanks!

I think ci uses a new version. I had similar issue with relay last week. I updated Rust locally and still wasn't able to reproduce some warnings 👻

@heilhead heilhead merged commit 3f6fcca into main Oct 9, 2023
7 checks passed
@heilhead heilhead deleted the feat/metrics-attributes branch October 9, 2023 11:46
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