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

Add Span.updateAttributes #133

Merged
merged 3 commits into from
Sep 6, 2023
Merged

Conversation

adam-fowler
Copy link
Contributor

Updating span attributes requires some form of thread synchronisation. If you update each attribute individually this could have a performance hit. This PR adds Span.updateAttributes which provides a way to update attributes in one go and only pay for the thread synchronisation costs once.

Copy link
Collaborator

@slashmo slashmo left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for opening the PR 👍 Tiny nitpicks in the doc blocks to keep it more consistent with the existing documentation.

Sources/Tracing/SpanProtocol.swift Outdated Show resolved Hide resolved
Sources/Tracing/SpanProtocol.swift Outdated Show resolved Hide resolved
@slashmo slashmo force-pushed the af-update-attributes branch from 735ccce to fe5dc71 Compare September 6, 2023 08:26
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