Skip to content

Commit

Permalink
add BugsnagPerformanceSpanContext implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
yousif-bugsnag committed Dec 2, 2024
1 parent 7373858 commit adef590
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
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
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

/* Begin PBXBuildFile section */
DA396E142CCFD327009B37C2 /* BugsnagCocoaPerformanceFromBugsnagReactNativePerformance.m in Sources */ = {isa = PBXBuildFile; fileRef = DA396E132CCFD327009B37C2 /* BugsnagCocoaPerformanceFromBugsnagReactNativePerformance.m */; };
DADF3E582CFE1C20002D2AC6 /* BugsnagPerformanceSpanContext.mm in Sources */ = {isa = PBXBuildFile; fileRef = DADF3E572CFE1C20002D2AC6 /* BugsnagPerformanceSpanContext.mm */; };
DAE18DD42C58DF2500D52529 /* BugsnagReactNativePerformance.mm in Sources */ = {isa = PBXBuildFile; fileRef = DAE18DD32C58DF2500D52529 /* BugsnagReactNativePerformance.mm */; };
DAE18DD72C58E02C00D52529 /* BugsnagReactNativePerformance.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = DAE18DD22C58DF2500D52529 /* BugsnagReactNativePerformance.h */; };
/* End PBXBuildFile section */
Expand All @@ -33,6 +34,7 @@
DAC1DC592CF87E770009C7F9 /* BugsnagPerformanceSpanContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BugsnagPerformanceSpanContext.h; sourceTree = "<group>"; };
DAC1DC5A2CF87EBA0009C7F9 /* BugsnagPerformanceSpanOptions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BugsnagPerformanceSpanOptions.h; sourceTree = "<group>"; };
DAC1DC5B2CF8859A0009C7F9 /* BugsnagPerformanceSpan.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BugsnagPerformanceSpan.h; sourceTree = "<group>"; };
DADF3E572CFE1C20002D2AC6 /* BugsnagPerformanceSpanContext.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = BugsnagPerformanceSpanContext.mm; sourceTree = "<group>"; };
DAE18DD22C58DF2500D52529 /* BugsnagReactNativePerformance.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BugsnagReactNativePerformance.h; sourceTree = "<group>"; };
DAE18DD32C58DF2500D52529 /* BugsnagReactNativePerformance.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BugsnagReactNativePerformance.mm; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand All @@ -59,6 +61,7 @@
58B511D21A9E6C8500147676 = {
isa = PBXGroup;
children = (
DADF3E572CFE1C20002D2AC6 /* BugsnagPerformanceSpanContext.mm */,
DAC1DC5B2CF8859A0009C7F9 /* BugsnagPerformanceSpan.h */,
DAC1DC5A2CF87EBA0009C7F9 /* BugsnagPerformanceSpanOptions.h */,
DAC1DC592CF87E770009C7F9 /* BugsnagPerformanceSpanContext.h */,
Expand Down Expand Up @@ -128,6 +131,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
DADF3E582CFE1C20002D2AC6 /* BugsnagPerformanceSpanContext.mm in Sources */,
DA396E142CCFD327009B37C2 /* BugsnagCocoaPerformanceFromBugsnagReactNativePerformance.m in Sources */,
DAE18DD42C58DF2500D52529 /* BugsnagReactNativePerformance.mm in Sources */,
);
Expand Down

0 comments on commit adef590

Please sign in to comment.