Skip to content

Conversation

@bachuv
Copy link
Collaborator

@bachuv bachuv commented Sep 20, 2023

This PR adds a setter for TraceParent to allow it to get serialized. Without this addition, we weren't able to run Netherite apps with the distributed tracing changes because we were seeing this exception: InvalidDataContractException: No set method for property 'TraceParent' in type 'DurableTask.Core.Tracing.DistributedTraceContext'.

It also updates the TraceState setter to include this condition - traceState?.Length <= 513 ? traceState : null instead of adding it in the constructor.

@bachuv bachuv changed the title Add private setter for TraceParent Update DistributedTraceContext Sep 20, 2023
@bachuv bachuv merged commit 20aed32 into main Sep 27, 2023
@bachuv bachuv deleted the vabachu/update-trace-parent branch September 27, 2023 19:23
nytian pushed a commit that referenced this pull request Oct 25, 2023
This PR adds a setter for TraceParent to allow it to get serialized. Without this addition, we weren't able to run Netherite apps with the distributed tracing changes because we were seeing this exception: InvalidDataContractException: No set method for property 'TraceParent' in type 'DurableTask.Core.Tracing.DistributedTraceContext'.

It also updates the TraceState setter to include this condition - traceState?.Length <= 513 ? traceState : null instead of adding it in the constructor.
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