Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions javascript/sentry-conventions/src/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9223,6 +9223,26 @@ export const SENTRY_DSC_ENVIRONMENT = 'sentry.dsc.environment';
*/
export type SENTRY_DSC_ENVIRONMENT_TYPE = string;

// Path: model/attributes/sentry/sentry__dsc__project_id.json

/**
* The ID of the project where the trace originated (i.e. the project of the SDK that started the trace). Propagated through the dynamic sampling context and set by Relay during ingestion. `sentry.dsc.project_id`
*
* Attribute Value Type: `number` {@link SENTRY_DSC_PROJECT_ID_TYPE}
*
* Contains PII: false
*
* Attribute defined in OTEL: No
*
* @example 12345
*/
export const SENTRY_DSC_PROJECT_ID = 'sentry.dsc.project_id';

/**
* Type for {@link SENTRY_DSC_PROJECT_ID} sentry.dsc.project_id
*/
export type SENTRY_DSC_PROJECT_ID_TYPE = number;

// Path: model/attributes/sentry/sentry__dsc__public_key.json

/**
Expand Down Expand Up @@ -12392,6 +12412,7 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
[SENTRY_DIST]: 'string',
[SENTRY_DOMAIN]: 'string',
[SENTRY_DSC_ENVIRONMENT]: 'string',
[SENTRY_DSC_PROJECT_ID]: 'integer',
[SENTRY_DSC_PUBLIC_KEY]: 'string',
[SENTRY_DSC_RELEASE]: 'string',
[SENTRY_DSC_SAMPLED]: 'boolean',
Expand Down Expand Up @@ -12962,6 +12983,7 @@ export type AttributeName =
| typeof SENTRY_DIST
| typeof SENTRY_DOMAIN
| typeof SENTRY_DSC_ENVIRONMENT
| typeof SENTRY_DSC_PROJECT_ID
| typeof SENTRY_DSC_PUBLIC_KEY
| typeof SENTRY_DSC_RELEASE
| typeof SENTRY_DSC_SAMPLED
Expand Down Expand Up @@ -18618,6 +18640,17 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
example: 'prod',
changelog: [{ version: '0.3.0', prs: [185] }],
},
[SENTRY_DSC_PROJECT_ID]: {
brief:
'The ID of the project where the trace originated (i.e. the project of the SDK that started the trace). Propagated through the dynamic sampling context and set by Relay during ingestion.',
type: 'integer',
pii: {
isPii: 'false',
},
isInOtel: false,
example: 12345,
changelog: [{ version: 'next', prs: [358], description: 'Add sentry.dsc.project_id as an attribute' }],
},
[SENTRY_DSC_PUBLIC_KEY]: {
brief: 'The public key from the dynamic sampling context.',
type: 'string',
Expand Down Expand Up @@ -20508,6 +20541,7 @@ export type Attributes = {
[SENTRY_DIST]?: SENTRY_DIST_TYPE;
[SENTRY_DOMAIN]?: SENTRY_DOMAIN_TYPE;
[SENTRY_DSC_ENVIRONMENT]?: SENTRY_DSC_ENVIRONMENT_TYPE;
[SENTRY_DSC_PROJECT_ID]?: SENTRY_DSC_PROJECT_ID_TYPE;
[SENTRY_DSC_PUBLIC_KEY]?: SENTRY_DSC_PUBLIC_KEY_TYPE;
[SENTRY_DSC_RELEASE]?: SENTRY_DSC_RELEASE_TYPE;
[SENTRY_DSC_SAMPLED]?: SENTRY_DSC_SAMPLED_TYPE;
Expand Down
17 changes: 17 additions & 0 deletions model/attributes/sentry/sentry__dsc__project_id.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"key": "sentry.dsc.project_id",
"brief": "The ID of the project where the trace originated (i.e. the project of the SDK that started the trace). Propagated through the dynamic sampling context and set by Relay during ingestion.",
"type": "integer",
"pii": {
"key": "false"
},
"is_in_otel": false,
"example": 12345,
"changelog": [
{
"version": "next",
"prs": [358],
"description": "Add sentry.dsc.project_id as an attribute"
}
]
}
25 changes: 25 additions & 0 deletions python/src/sentry_conventions/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5192,6 +5192,16 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
Example: "prod"
"""

# Path: model/attributes/sentry/sentry__dsc__project_id.json
SENTRY_DSC_PROJECT_ID: Literal["sentry.dsc.project_id"] = "sentry.dsc.project_id"
"""The ID of the project where the trace originated (i.e. the project of the SDK that started the trace). Propagated through the dynamic sampling context and set by Relay during ingestion.

Type: int
Contains PII: false
Defined in OTEL: No
Example: 12345
"""

# Path: model/attributes/sentry/sentry__dsc__public_key.json
SENTRY_DSC_PUBLIC_KEY: Literal["sentry.dsc.public_key"] = "sentry.dsc.public_key"
"""The public key from the dynamic sampling context.
Expand Down Expand Up @@ -12423,6 +12433,20 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
ChangelogEntry(version="0.3.0", prs=[185]),
],
),
"sentry.dsc.project_id": AttributeMetadata(
brief="The ID of the project where the trace originated (i.e. the project of the SDK that started the trace). Propagated through the dynamic sampling context and set by Relay during ingestion.",
type=AttributeType.INTEGER,
pii=PiiInfo(isPii=IsPii.FALSE),
is_in_otel=False,
example=12345,
changelog=[
ChangelogEntry(
version="next",
prs=[358],
description="Add sentry.dsc.project_id as an attribute",
),
],
),
"sentry.dsc.public_key": AttributeMetadata(
brief="The public key from the dynamic sampling context.",
type=AttributeType.STRING,
Expand Down Expand Up @@ -14371,6 +14395,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
"sentry.dist": str,
"sentry.domain": str,
"sentry.dsc.environment": str,
"sentry.dsc.project_id": int,
"sentry.dsc.public_key": str,
"sentry.dsc.release": str,
"sentry.dsc.sample_rate": str,
Expand Down
Loading