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

Distributed tracing updates #43

Merged
merged 1 commit into from
Nov 1, 2023
Merged

Distributed tracing updates #43

merged 1 commit into from
Nov 1, 2023

Conversation

cgillum
Copy link
Member

@cgillum cgillum commented Nov 1, 2023

This project was using a fork of durabletask-protobuf as a submodule and had diverged from the main branch. This PR aligns with the durabletask-protobuf main branch, which includes some changes to the distributed tracing protobuf contract. This misalignment was pointed out in #31.

One notable change was the change to TraceContext, which previously defined traceID and spanID as distinct values. However, the latest durabletask-protobuf reduced these to just traceParent to be closer to the HTTP protocol. To make this non-breaking, I simply renamed traceID to traceParent and deprecated the spanID value without removing it. I also added some code that should try to handle this transition gracefully. This should hopefully allow any orchestrations created with the old schema to continue working with the new schema.

We don't yet have any external SDKs that are taking advantage of the distributed tracing feature, so this is not expected to break any existing SDKs.

Lastly, this PR also happens to contain a new test, Test_RecreateCompletedOrchestration. However, it's currently skipped as it requires additional feature work (probably could have gone into a separate PR but I'm being a bit lazy).

@cgillum cgillum merged commit ba82393 into main Nov 1, 2023
4 checks passed
@cgillum cgillum deleted the update-distributed-tracing branch November 1, 2023 17:00
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.

1 participant