Skip to content

Commit 8cf36ce

Browse files
authored
ref(attributes): Update sentry.span.source with known values (#214)
* ref(attributes): Update `sentry.span.source` with known values * remove incomplete formatting
1 parent da0a0e1 commit 8cf36ce

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

generated/attributes/all.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Total attributes: 413
279279
| [`sentry.segment.id`](./sentry.md#sentrysegmentid) | The segment ID of a span |
280280
| [`sentry.segment.name`](./sentry.md#sentrysegmentname) | The segment name of a span |
281281
| [`sentry.server_sample_rate`](./sentry.md#sentryserver_sample_rate) | Rate at which a span was sampled in Relay. |
282-
| [`sentry.span.source`](./sentry.md#sentryspansource) | The source of a span, also referred to as transaction source. |
282+
| [`sentry.span.source`](./sentry.md#sentryspansource) | The source of a span, also referred to as transaction source. Known values are: `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`. |
283283
| [`sentry.status.message`](./sentry.md#sentrystatusmessage) | The from OTLP extracted status message. |
284284
| [`sentry.trace.parent_span_id`](./sentry.md#sentrytraceparent_span_id) | The span id of the span that was active when the log was collected. This should not be set if there was no active span. |
285285
| [`sentry.transaction`](./sentry.md#sentrytransaction) | The sentry transaction (segment name). |

generated/attributes/sentry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ Rate at which a span was sampled in Relay.
536536

537537
### sentry.span.source
538538

539-
The source of a span, also referred to as transaction source.
539+
The source of a span, also referred to as transaction source. Known values are: `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`.
540540

541541
| Property | Value |
542542
| --- | --- |

javascript/sentry-conventions/src/attributes.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7092,7 +7092,7 @@ export type SENTRY_SERVER_SAMPLE_RATE_TYPE = number;
70927092
// Path: model/attributes/sentry/sentry__span__source.json
70937093

70947094
/**
7095-
* The source of a span, also referred to as transaction source. `sentry.span.source`
7095+
* The source of a span, also referred to as transaction source. Known values are: `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`. `sentry.span.source`
70967096
*
70977097
* Attribute Value Type: `string` {@link SENTRY_SPAN_SOURCE_TYPE}
70987098
*
@@ -12986,7 +12986,8 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
1298612986
example: 0.5,
1298712987
},
1298812988
[SENTRY_SPAN_SOURCE]: {
12989-
brief: 'The source of a span, also referred to as transaction source.',
12989+
brief:
12990+
"The source of a span, also referred to as transaction source. Known values are: `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`.",
1299012991
type: 'string',
1299112992
pii: {
1299212993
isPii: 'false',

model/attributes/sentry/sentry__span__source.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"key": "sentry.span.source",
3-
"brief": "The source of a span, also referred to as transaction source.",
3+
"brief": "The source of a span, also referred to as transaction source. Known values are: `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`.",
44
"type": "string",
55
"pii": {
66
"key": "false"

python/src/sentry_conventions/attributes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3943,7 +3943,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
39433943

39443944
# Path: model/attributes/sentry/sentry__span__source.json
39453945
SENTRY_SPAN_SOURCE: Literal["sentry.span.source"] = "sentry.span.source"
3946-
"""The source of a span, also referred to as transaction source.
3946+
"""The source of a span, also referred to as transaction source. Known values are: `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`.
39473947
39483948
Type: str
39493949
Contains PII: false
@@ -7397,7 +7397,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
73977397
example=0.5,
73987398
),
73997399
"sentry.span.source": AttributeMetadata(
7400-
brief="The source of a span, also referred to as transaction source.",
7400+
brief="The source of a span, also referred to as transaction source. Known values are: `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`.",
74017401
type=AttributeType.STRING,
74027402
pii=PiiInfo(isPii=IsPii.FALSE),
74037403
is_in_otel=False,

0 commit comments

Comments
 (0)