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

SpanAttribute key deduplication #1284

Closed
cijothomas opened this issue Oct 3, 2023 · 2 comments
Closed

SpanAttribute key deduplication #1284

cijothomas opened this issue Oct 3, 2023 · 2 comments
Assignees
Labels
A-trace Area: issues related to tracing

Comments

@cijothomas
Copy link
Member

LogRecord has switched from HashMap(OrderMap to be precise) to simple Vector to attributes to achieve significant perf gains.

Span is currently using HashMap(OrderMap), and want to gain more opinions on moving this to simple Vector as well. There was some argument for keeping HashMap to keep O(1) lookup as requested here : #794.

The performance benchmarks in this PR have presented the case for switching to Vector. The PR, which added benchmarks got merged, but there was no issue to track making the actual changes!

This issue is opened to track changing the HashMap/OrderMap to vectors, and remove the SDK from doing the de-duplication. It is still possible to make an opt-in feature to do this (as a processor or even at exporter thread to not affect user thread), if we there is enough demand for such a feature.

Related to #1283 as well.

@cijothomas cijothomas added the A-trace Area: issues related to tracing label Oct 4, 2023
@cijothomas
Copy link
Member Author

Related to similar issue specifically for Metrics : #1098

@cijothomas cijothomas self-assigned this Oct 6, 2023
@cijothomas cijothomas changed the title Attribute key deduplication SpanAttribute key deduplication Oct 11, 2023
@cijothomas
Copy link
Member Author

Closed with #1293, with a near 50% performance improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-trace Area: issues related to tracing
Projects
None yet
Development

No branches or pull requests

1 participant