diff --git a/packages/node/src/nodeClient.ts b/packages/node/src/nodeClient.ts index 49d5f55..c1652b5 100644 --- a/packages/node/src/nodeClient.ts +++ b/packages/node/src/nodeClient.ts @@ -129,7 +129,7 @@ export class NodeClient implements Client { /** Add platform dependent field onto event. */ private _annotateEvent(event: Event): void { event.library = `${SDK_NAME}/${SDK_VERSION}`; - event.platform = 'Node.js'; + event.platform = event.platform ?? 'Node.js'; } private _setupDefaultTransport(): RetryHandler {