Skip to content

Add InstrumentationScope support to ResourceSpans#21

Merged
rjenkins merged 6 commits into
mainfrom
trace_instrumentation_scope_support
Apr 12, 2025
Merged

Add InstrumentationScope support to ResourceSpans#21
rjenkins merged 6 commits into
mainfrom
trace_instrumentation_scope_support

Conversation

@rjenkins
Copy link
Copy Markdown
Member

@rjenkins rjenkins commented Apr 11, 2025

Completes: STR-3253

Adds support for Optional<InstrumentationScope> to the ResourceSpans type. In this PR we use a new approach which reduces the need for an additional ArcMutex in the InstrumentationScope attributes property. So far this looks pretty good. In a future PR we will likely update ResourceAttributes to use a similar model and collapse the two.

@rjenkins rjenkins requested a review from mheffner April 11, 2025 18:55
Comment thread src/processor/py/mod.rs
// Careful observer will notice this looks like PyAttributes called from PyResource, however
// that class has additional ArcMutexes around the KeyValues. We tried out a new pattern here for the scope attributes
// and it appears to be working well. For the sake of safety I want to finish additional testing before going back and
// refactoring. WHen we do we should be able to remove this and share a single attributes and attributes iter type.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@rjenkins rjenkins merged commit aea7197 into main Apr 12, 2025
4 checks passed
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