You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: replace parent_span_context with parent_span_is_remote boolean
- Replace Option<SpanContext> with bool for parent_span_is_remote field
- Eliminates unnecessary cloning of SpanContext objects
- More efficient memory usage and cleaner API
- Updated build_span_flags function to accept boolean parameter
- Updated all test files to use new boolean field
- Maintains same functionality with better performance
Addresses reviewer feedback for more efficient implementation.
Copy file name to clipboardExpand all lines: opentelemetry-sdk/CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
## vNext
4
4
5
5
-**Feature**: Add span flags support for `isRemote` property in OTLP exporter ([#3153](https://github.com/open-telemetry/opentelemetry-rust/pull/3153))
6
-
- Added `parent_span_context` field to `SpanData` to store parent span context information
6
+
- Added `parent_span_is_remote` field to `SpanData` to store parent span remote flag
7
7
- Implemented `build_span_flags` function that sets OTLP span flags based on parent span's `isRemote` property
8
8
- Updated span and link transformations to properly set flags field (0x100 for local, 0x300 for remote)
9
9
- Added comprehensive tests for span flags functionality
0 commit comments