diff --git a/packages/react-native/ios/BugsnagReactNative/BugsnagEventDeserializer.m b/packages/react-native/ios/BugsnagReactNative/BugsnagEventDeserializer.m index 280a78867..b781b7e87 100644 --- a/packages/react-native/ios/BugsnagReactNative/BugsnagEventDeserializer.m +++ b/packages/react-native/ios/BugsnagReactNative/BugsnagEventDeserializer.m @@ -17,6 +17,7 @@ - (BugsnagEvent *)deserializeEvent:(NSDictionary *)payload { BugsnagHandledState *handledState = [self deserializeHandledState:payload]; NSDictionary *user = payload[@"user"]; + NSDictionary *correlation = payload[@"correlation"]; BugsnagEvent *event = [[BugsnagEvent alloc] initWithApp:[BugsnagAppWithState appFromJson:payload[@"app"]] device:[BugsnagDeviceWithState deviceFromJson:payload[@"device"]] @@ -30,6 +31,8 @@ - (BugsnagEvent *)deserializeEvent:(NSDictionary *)payload { event.context = payload[@"context"]; event.groupingHash = payload[@"groupingHash"]; + [event setCorrelationTraceId:correlation[@"traceId"] spanId:correlation[@"spanId"]]; + if (payload[@"apiKey"]) { event.apiKey = payload[@"apiKey"]; }