Skip to content

Commit 3347fa5

Browse files
committed
avoid more work??
1 parent d2dffac commit 3347fa5

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

packages/core/src/tracing/dynamicSamplingContext.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@ export function getDynamicSamplingContextFromClient(trace_id: string, client: Cl
5050
trace_id,
5151
};
5252

53-
if (!dsc.release) {
54-
delete dsc.release;
55-
}
56-
if (!dsc.public_key) {
57-
delete dsc.public_key;
58-
}
59-
6053
client.emit('createDsc', dsc);
6154

6255
return dsc;

packages/core/src/types-hoist/envelope.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type { SpanJSON } from './span';
1717
// Based on https://github.com/getsentry/relay/blob/b23b8d3b2360a54aaa4d19ecae0231201f31df5e/relay-sampling/src/lib.rs#L685-L707
1818
export type DynamicSamplingContext = {
1919
trace_id: string;
20-
public_key?: DsnComponents['publicKey'];
20+
public_key: DsnComponents['publicKey'];
2121
sample_rate?: string;
2222
release?: string;
2323
environment?: string;

0 commit comments

Comments
 (0)