Skip to content

Commit abe6ac0

Browse files
committed
profiling: add platform to envelope headers
1 parent 4bc89bd commit abe6ac0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/profiling-node/src/integration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ class ContinuousProfiler {
516516
const metadata = this._client.getSdkMetadata();
517517
const tunnel = this._client.getOptions().tunnel;
518518

519-
const envelope = makeProfileChunkEnvelope(chunk, metadata?.sdk, tunnel, dsn);
519+
const envelope = makeProfileChunkEnvelope('node', chunk, metadata?.sdk, tunnel, dsn);
520520
transport.send(envelope).then(null, reason => {
521521
DEBUG_BUILD && logger.error('Error while sending profile chunk envelope:', reason);
522522
});

packages/profiling-node/src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,13 +400,15 @@ export function createEventEnvelopeHeaders(
400400
* Creates a standalone profile_chunk envelope.
401401
*/
402402
export function makeProfileChunkEnvelope(
403+
platform: 'node',
403404
chunk: ProfileChunk,
404405
sdkInfo: SdkInfo | undefined,
405406
tunnel: string | undefined,
406407
dsn?: DsnComponents,
407408
): ProfileChunkEnvelope {
408409
const profileChunkHeader: ProfileChunkItem[0] = {
409410
type: 'profile_chunk',
411+
platform: platform,
410412
};
411413

412414
return createEnvelope<ProfileChunkEnvelope>(createEventEnvelopeHeaders(sdkInfo, tunnel, dsn), [

0 commit comments

Comments
 (0)