Skip to content

Commit

Permalink
Return proxied objects from crosstalk API
Browse files Browse the repository at this point in the history
  • Loading branch information
yousif-bugsnag committed Dec 10, 2024
1 parent 2bd7d48 commit 2cd61e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ - (NSArray * _Nullable)getCurrentTraceAndSpanIdV1 {
* Return the final configuration that was provided to [BugsnagPerformance start], or return nil if start has not been called.
*/
- (BugsnagPerformanceConfiguration * _Nullable)getConfigurationV1 {
return self.configuration;
return (BugsnagPerformanceConfiguration *)[BugsnagPerformanceCrossTalkProxiedObject proxied:self.configuration];
}

- (BugsnagPerformanceSpan * _Nullable)startSpanV1:(NSString * _Nonnull)name options:(BugsnagPerformanceSpanOptions *)optionsIn {
Expand All @@ -84,7 +84,7 @@ - (BugsnagPerformanceSpan * _Nullable)startSpanV1:(NSString * _Nonnull)name opti

auto options = SpanOptions(optionsIn);
auto span = tracer->startSpan(name, options, BSGFirstClassUnset);
return span;
return (BugsnagPerformanceSpan *)[BugsnagPerformanceCrossTalkProxiedObject proxied:span];
}

#pragma mark BSGPhasedStartup
Expand Down

0 comments on commit 2cd61e8

Please sign in to comment.