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

PLAT-12127 add traceid to events #801

Merged
merged 5 commits into from
May 28, 2024

Conversation

richardelms
Copy link
Contributor

@richardelms richardelms commented May 16, 2024

NOTE

This PR is part of work connected to the Unity Notifier, the sister PR can be found here: bugsnag/bugsnag-unity-performance#112

Please do not review this PR without also reviewing the other

Goal

When a C# layer error occurs, get the current span context from the Unity Performance SDK and include it in the event report.

Changeset

Added PerformanceHelper class to get information from the Performance SDK if it is present.

Testing

Manually tested
E2E Tests will be added in a later task

Copy link
Contributor

@lemnik lemnik left a comment

Choose a reason for hiding this comment

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

LGTM

src/BugsnagUnity/PerformanceHelper.cs Show resolved Hide resolved
}

Log("Parsing result to CorrelationTransfer");
var performanceState = JsonUtility.FromJson<PerformanceState>(result);
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if we ever have to change the structure of this for some reason? Would it gracefully handle the change, or would customers have to lockstep upgrade both the notifier and the performance library to avoid a crash?

@kstenerud
Copy link
Contributor

I really think that we should version these kinds of cross-library interfaces so that we don't accidentally paint ourselves into a corner...

@richardelms richardelms merged commit 847a2c2 into integration/errorCorrelation May 28, 2024
12 checks passed
@richardelms richardelms deleted the 12127-addTraceidToEvents branch May 28, 2024 12:20
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.

3 participants