We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SpanAttributes
1 parent 6868256 commit facdb7eCopy full SHA for facdb7e
packages/types/src/span.ts
@@ -23,7 +23,13 @@ export type SpanAttributeValue =
23
| Array<null | undefined | number>
24
| Array<null | undefined | boolean>;
25
26
-export type SpanAttributes = Record<string, SpanAttributeValue | undefined>;
+export type SpanAttributes = Partial<{
27
+ 'sentry.origin': string;
28
+ 'sentry.op': string;
29
+ 'sentry.source': string;
30
+ 'sentry.sample_rate': number;
31
+}> &
32
+ Record<string, SpanAttributeValue | undefined>;
33
34
/** This type is aligned with the OpenTelemetry TimeInput type. */
35
export type SpanTimeInput = HrTime | number | Date;
0 commit comments