Skip to content

Commit

Permalink
feat(event): allow passing in of platform (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-lu authored Feb 10, 2021
1 parent 42464f4 commit 1a11d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node/src/nodeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class NodeClient implements Client<Options> {
/** 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 {
Expand Down

0 comments on commit 1a11d01

Please sign in to comment.