Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/Sentry/Platforms/Android/AndroidScopeObserver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,14 @@ public void SetUser(SentryUser? user)

public void SetTrace(SentryId traceId, SpanId parentSpanId)
{
// TODO: This requires sentry-java 8.4.0
try
{
JavaSdk.Android.Core.InternalSentrySdk.SetTrace(traceId.ToString(), parentSpanId.ToString(), null, null);
}
finally
{
_innerObserver?.SetTrace(traceId, parentSpanId);
}
}

public void AddAttachment(SentryAttachment attachment)
Expand Down
9 changes: 8 additions & 1 deletion src/Sentry/Platforms/Cocoa/CocoaScopeObserver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@ public void SetUser(SentryUser? user)

public void SetTrace(SentryId traceId, SpanId parentSpanId)
{
// TODO: Missing corresponding functionality on the Cocoa SDK
try
{
SentryCocoaHybridSdk.SetTrace(traceId.ToCocoaSentryId(), parentSpanId.ToCocoaSpanId());
}
finally
{
_innerObserver?.SetTrace(traceId, parentSpanId);
}
}

public void AddAttachment(SentryAttachment attachment)
Expand Down
Loading