-
-
Notifications
You must be signed in to change notification settings - Fork 226
feat: Allow IScopeObserver to observe trace
#4026
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
Changes from 6 commits
9e7c423
8c3ef39
65facbe
5fa7b5b
13351a4
ba8eebd
2df0cd9
8daf952
172c675
f3e4082
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| namespace Sentry; | ||
|
|
||
| /// <summary> | ||
| /// Sentry SDK internal API methods meant for being used by the Sentry Unity SDK | ||
| /// </summary> | ||
| public static class InternalSentrySdk | ||
| { | ||
| /// <summary> | ||
| /// Allows to set the trace | ||
| /// </summary> | ||
| public static void SetTrace(SentryId traceId, SpanId parentSpanId) => | ||
| SentrySdk.CurrentHub.ConfigureScope(scope => | ||
| scope.SetPropagationContext(new SentryPropagationContext(traceId, parentSpanId))); | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,4 +99,9 @@ public void SetUser(SentryUser? user) | |
| _innerObserver?.SetUser(user); | ||
| } | ||
| } | ||
|
|
||
| public void SetTrace(SentryId traceId, SpanId parentSpanId) | ||
| { | ||
| // TODO: This requires sentry-java 8.4.0 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to follow up later with this once this is added to the Java and Apple SDKs?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tracking in #4074 |
||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.