-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add BugsnagPerformanceSpanContext implementation
- Loading branch information
1 parent
7373858
commit adef590
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
packages/platforms/react-native/ios/BugsnagPerformanceSpanContext.mm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#import "BugsnagPerformanceSpanContext.h" | ||
|
||
@implementation BugsnagPerformanceSpanContext | ||
|
||
- (instancetype) initWithTraceId:(TraceId) traceId spanId:(SpanId) spanId { | ||
if ((self = [super init])) { | ||
_traceId = traceId; | ||
_spanId = spanId; | ||
} | ||
return self; | ||
} | ||
|
||
- (instancetype) initWithTraceIdHi:(uint64_t)traceIdHi traceIdLo:(uint64_t)traceIdLo spanId:(SpanId)spanId { | ||
return [self initWithTraceId:TraceId{.hi=traceIdHi, .lo=traceIdLo} spanId:spanId]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters