diff --git a/javascript/sentry-conventions/src/attributes.ts b/javascript/sentry-conventions/src/attributes.ts index 379ef9c7..df210271 100644 --- a/javascript/sentry-conventions/src/attributes.ts +++ b/javascript/sentry-conventions/src/attributes.ts @@ -12421,6 +12421,27 @@ export const SENTRY_SEGMENT_NAME = 'sentry.segment.name'; */ export type SENTRY_SEGMENT_NAME_TYPE = string; +// Path: model/attributes/sentry/sentry__segment__name__source.json + +/** + * The name source of the segment span. Should only be set on segment spans. Known values are: `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`. `sentry.segment.name.source` + * + * Attribute Value Type: `string` {@link SENTRY_SEGMENT_NAME_SOURCE_TYPE} + * + * Apply Scrubbing: manual + * + * Attribute defined in OTEL: No + * Visibility: internal + * + * @example "'route'" + */ +export const SENTRY_SEGMENT_NAME_SOURCE = 'sentry.segment.name.source'; + +/** + * Type for {@link SENTRY_SEGMENT_NAME_SOURCE} sentry.segment.name.source + */ +export type SENTRY_SEGMENT_NAME_SOURCE_TYPE = string; + // Path: model/attributes/sentry/sentry__server_sample_rate.json /** @@ -15407,6 +15428,7 @@ export const ATTRIBUTE_TYPE: Record = { 'sentry.segment.id': 'string', 'sentry.segment_id': 'string', 'sentry.segment.name': 'string', + 'sentry.segment.name.source': 'string', 'sentry.server_sample_rate': 'double', 'sentry.source': 'string', 'sentry.span.source': 'string', @@ -16082,6 +16104,7 @@ export type AttributeName = | typeof SENTRY_SEGMENT_ID | typeof _SENTRY_SEGMENT_ID | typeof SENTRY_SEGMENT_NAME + | typeof SENTRY_SEGMENT_NAME_SOURCE | typeof SENTRY_SERVER_SAMPLE_RATE | typeof SENTRY_SOURCE | typeof SENTRY_SPAN_SOURCE @@ -23767,6 +23790,18 @@ export const ATTRIBUTE_METADATA: Record = { { version: '0.1.0', prs: [104] }, ], }, + 'sentry.segment.name.source': { + brief: + "The name source of the segment span. Should only be set on segment spans. Known values are: `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`.", + type: 'string', + applyScrubbing: { + key: 'manual', + }, + isInOtel: false, + visibility: 'internal', + example: "'route'", + changelog: [{ version: 'next', prs: [466], description: 'Added sentry.segment.name.source' }], + }, 'sentry.server_sample_rate': { brief: 'Rate at which a span was sampled in Relay.', type: 'double', @@ -25664,6 +25699,7 @@ export type Attributes = { [SENTRY_SEGMENT_ID]?: SENTRY_SEGMENT_ID_TYPE; [_SENTRY_SEGMENT_ID]?: _SENTRY_SEGMENT_ID_TYPE; [SENTRY_SEGMENT_NAME]?: SENTRY_SEGMENT_NAME_TYPE; + [SENTRY_SEGMENT_NAME_SOURCE]?: SENTRY_SEGMENT_NAME_SOURCE_TYPE; [SENTRY_SERVER_SAMPLE_RATE]?: SENTRY_SERVER_SAMPLE_RATE_TYPE; [SENTRY_SOURCE]?: SENTRY_SOURCE_TYPE; [SENTRY_SPAN_SOURCE]?: SENTRY_SPAN_SOURCE_TYPE; diff --git a/model/attributes/sentry/sentry__segment__name__source.json b/model/attributes/sentry/sentry__segment__name__source.json new file mode 100644 index 00000000..fb81bc5f --- /dev/null +++ b/model/attributes/sentry/sentry__segment__name__source.json @@ -0,0 +1,18 @@ +{ + "key": "sentry.segment.name.source", + "brief": "The name source of the segment span. Should only be set on segment spans. Known values are: `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`.", + "type": "string", + "apply_scrubbing": { + "key": "manual" + }, + "is_in_otel": false, + "visibility": "internal", + "example": "'route'", + "changelog": [ + { + "version": "next", + "prs": [466], + "description": "Added sentry.segment.name.source" + } + ] +} diff --git a/python/src/sentry_conventions/attributes.py b/python/src/sentry_conventions/attributes.py index 67e6cb4b..3e874e4a 100644 --- a/python/src/sentry_conventions/attributes.py +++ b/python/src/sentry_conventions/attributes.py @@ -7233,6 +7233,19 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): Example: "GET /user" """ + # Path: model/attributes/sentry/sentry__segment__name__source.json + SENTRY_SEGMENT_NAME_SOURCE: Literal["sentry.segment.name.source"] = ( + "sentry.segment.name.source" + ) + """The name source of the segment span. Should only be set on segment spans. Known values are: `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`. + + Type: str + Apply Scrubbing: manual + Defined in OTEL: No + Visibility: internal + Example: "'route'" + """ + # Path: model/attributes/sentry/sentry__segment_id.json _SENTRY_SEGMENT_ID: Literal["sentry.segment_id"] = "sentry.segment_id" """The segment ID of a span @@ -16617,6 +16630,21 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): ChangelogEntry(version="0.1.0", prs=[104]), ], ), + "sentry.segment.name.source": AttributeMetadata( + brief="The name source of the segment span. Should only be set on segment spans. Known values are: `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`.", + type=AttributeType.STRING, + apply_scrubbing=ApplyScrubbingInfo(key=ApplyScrubbing.MANUAL), + is_in_otel=False, + visibility=Visibility.INTERNAL, + example="'route'", + changelog=[ + ChangelogEntry( + version="next", + prs=[466], + description="Added sentry.segment.name.source", + ), + ], + ), "sentry.segment_id": AttributeMetadata( brief="The segment ID of a span", type=AttributeType.STRING, @@ -18576,6 +18604,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "sentry.sdk.version": str, "sentry.segment.id": str, "sentry.segment.name": str, + "sentry.segment.name.source": str, "sentry.segment_id": str, "sentry.server_sample_rate": float, "sentry.source": str,