From ff89e83e0b6a78e56cb4b02c9d5326947c330bce Mon Sep 17 00:00:00 2001 From: Charly Gomez Date: Tue, 12 May 2026 15:25:03 +0200 Subject: [PATCH 1/3] feat(attributes): Add `gcp.function.context.*` span attributes Add GCP Cloud Function context attributes: type, source, id, specversion, time, eventId, timestamp, eventType, and resource. Needed by the JS SDK (JS-2221) for span streaming. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../sentry-conventions/src/attributes.ts | 297 ++++++++++++++++++ .../gcp/gcp__function__context__eventId.json | 17 + .../gcp__function__context__eventType.json | 17 + .../gcp/gcp__function__context__id.json | 17 + .../gcp/gcp__function__context__resource.json | 17 + .../gcp/gcp__function__context__source.json | 17 + .../gcp__function__context__specversion.json | 17 + .../gcp/gcp__function__context__time.json | 17 + .../gcp__function__context__timestamp.json | 17 + .../gcp/gcp__function__context__type.json | 17 + python/src/sentry_conventions/attributes.py | 243 ++++++++++++++ 11 files changed, 693 insertions(+) create mode 100644 model/attributes/gcp/gcp__function__context__eventId.json create mode 100644 model/attributes/gcp/gcp__function__context__eventType.json create mode 100644 model/attributes/gcp/gcp__function__context__id.json create mode 100644 model/attributes/gcp/gcp__function__context__resource.json create mode 100644 model/attributes/gcp/gcp__function__context__source.json create mode 100644 model/attributes/gcp/gcp__function__context__specversion.json create mode 100644 model/attributes/gcp/gcp__function__context__time.json create mode 100644 model/attributes/gcp/gcp__function__context__timestamp.json create mode 100644 model/attributes/gcp/gcp__function__context__type.json diff --git a/javascript/sentry-conventions/src/attributes.ts b/javascript/sentry-conventions/src/attributes.ts index e74c1197..e6995633 100644 --- a/javascript/sentry-conventions/src/attributes.ts +++ b/javascript/sentry-conventions/src/attributes.ts @@ -4013,6 +4013,186 @@ export const FS_ERROR = 'fs_error'; */ export type FS_ERROR_TYPE = string; +// Path: model/attributes/gcp/gcp__function__context__eventId.json + +/** + * The legacy event ID of the GCP Cloud Function event `gcp.function.context.eventId` + * + * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_EVENTID_TYPE} + * + * Contains PII: false + * + * Attribute defined in OTEL: No + * + * @example "1234567890" + */ +export const GCP_FUNCTION_CONTEXT_EVENTID = 'gcp.function.context.eventId'; + +/** + * Type for {@link GCP_FUNCTION_CONTEXT_EVENTID} gcp.function.context.eventId + */ +export type GCP_FUNCTION_CONTEXT_EVENTID_TYPE = string; + +// Path: model/attributes/gcp/gcp__function__context__eventType.json + +/** + * The type of the GCP Cloud Function event `gcp.function.context.eventType` + * + * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_EVENTTYPE_TYPE} + * + * Contains PII: false + * + * Attribute defined in OTEL: No + * + * @example "google.pubsub.topic.publish" + */ +export const GCP_FUNCTION_CONTEXT_EVENTTYPE = 'gcp.function.context.eventType'; + +/** + * Type for {@link GCP_FUNCTION_CONTEXT_EVENTTYPE} gcp.function.context.eventType + */ +export type GCP_FUNCTION_CONTEXT_EVENTTYPE_TYPE = string; + +// Path: model/attributes/gcp/gcp__function__context__id.json + +/** + * The unique ID of the GCP Cloud Function event `gcp.function.context.id` + * + * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_ID_TYPE} + * + * Contains PII: false + * + * Attribute defined in OTEL: No + * + * @example "1234567890" + */ +export const GCP_FUNCTION_CONTEXT_ID = 'gcp.function.context.id'; + +/** + * Type for {@link GCP_FUNCTION_CONTEXT_ID} gcp.function.context.id + */ +export type GCP_FUNCTION_CONTEXT_ID_TYPE = string; + +// Path: model/attributes/gcp/gcp__function__context__resource.json + +/** + * The resource that triggered the GCP Cloud Function event `gcp.function.context.resource` + * + * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_RESOURCE_TYPE} + * + * Contains PII: false + * + * Attribute defined in OTEL: No + * + * @example "projects/my-project/topics/my-topic" + */ +export const GCP_FUNCTION_CONTEXT_RESOURCE = 'gcp.function.context.resource'; + +/** + * Type for {@link GCP_FUNCTION_CONTEXT_RESOURCE} gcp.function.context.resource + */ +export type GCP_FUNCTION_CONTEXT_RESOURCE_TYPE = string; + +// Path: model/attributes/gcp/gcp__function__context__source.json + +/** + * The source of the GCP Cloud Function event `gcp.function.context.source` + * + * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_SOURCE_TYPE} + * + * Contains PII: false + * + * Attribute defined in OTEL: No + * + * @example "//pubsub.googleapis.com/projects/my-project/topics/my-topic" + */ +export const GCP_FUNCTION_CONTEXT_SOURCE = 'gcp.function.context.source'; + +/** + * Type for {@link GCP_FUNCTION_CONTEXT_SOURCE} gcp.function.context.source + */ +export type GCP_FUNCTION_CONTEXT_SOURCE_TYPE = string; + +// Path: model/attributes/gcp/gcp__function__context__specversion.json + +/** + * The CloudEvents specification version of the GCP Cloud Function event `gcp.function.context.specversion` + * + * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_SPECVERSION_TYPE} + * + * Contains PII: false + * + * Attribute defined in OTEL: No + * + * @example "1.0" + */ +export const GCP_FUNCTION_CONTEXT_SPECVERSION = 'gcp.function.context.specversion'; + +/** + * Type for {@link GCP_FUNCTION_CONTEXT_SPECVERSION} gcp.function.context.specversion + */ +export type GCP_FUNCTION_CONTEXT_SPECVERSION_TYPE = string; + +// Path: model/attributes/gcp/gcp__function__context__time.json + +/** + * The timestamp of the GCP Cloud Function event `gcp.function.context.time` + * + * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_TIME_TYPE} + * + * Contains PII: false + * + * Attribute defined in OTEL: No + * + * @example "2024-01-01T00:00:00.000Z" + */ +export const GCP_FUNCTION_CONTEXT_TIME = 'gcp.function.context.time'; + +/** + * Type for {@link GCP_FUNCTION_CONTEXT_TIME} gcp.function.context.time + */ +export type GCP_FUNCTION_CONTEXT_TIME_TYPE = string; + +// Path: model/attributes/gcp/gcp__function__context__timestamp.json + +/** + * The legacy timestamp of the GCP Cloud Function event `gcp.function.context.timestamp` + * + * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_TIMESTAMP_TYPE} + * + * Contains PII: false + * + * Attribute defined in OTEL: No + * + * @example "2024-01-01T00:00:00.000Z" + */ +export const GCP_FUNCTION_CONTEXT_TIMESTAMP = 'gcp.function.context.timestamp'; + +/** + * Type for {@link GCP_FUNCTION_CONTEXT_TIMESTAMP} gcp.function.context.timestamp + */ +export type GCP_FUNCTION_CONTEXT_TIMESTAMP_TYPE = string; + +// Path: model/attributes/gcp/gcp__function__context__type.json + +/** + * The type of the GCP Cloud Function event context `gcp.function.context.type` + * + * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_TYPE_TYPE} + * + * Contains PII: false + * + * Attribute defined in OTEL: No + * + * @example "cloud_functions.context" + */ +export const GCP_FUNCTION_CONTEXT_TYPE = 'gcp.function.context.type'; + +/** + * Type for {@link GCP_FUNCTION_CONTEXT_TYPE} gcp.function.context.type + */ +export type GCP_FUNCTION_CONTEXT_TYPE_TYPE = string; + // Path: model/attributes/gen_ai/gen_ai__agent__name.json /** @@ -12144,6 +12324,15 @@ export const ATTRIBUTE_TYPE: Record = { [FRAMES_SLOW]: 'integer', [FRAMES_TOTAL]: 'integer', [FS_ERROR]: 'string', + [GCP_FUNCTION_CONTEXT_EVENTID]: 'string', + [GCP_FUNCTION_CONTEXT_EVENTTYPE]: 'string', + [GCP_FUNCTION_CONTEXT_ID]: 'string', + [GCP_FUNCTION_CONTEXT_RESOURCE]: 'string', + [GCP_FUNCTION_CONTEXT_SOURCE]: 'string', + [GCP_FUNCTION_CONTEXT_SPECVERSION]: 'string', + [GCP_FUNCTION_CONTEXT_TIME]: 'string', + [GCP_FUNCTION_CONTEXT_TIMESTAMP]: 'string', + [GCP_FUNCTION_CONTEXT_TYPE]: 'string', [GEN_AI_AGENT_NAME]: 'string', [GEN_AI_CONTEXT_UTILIZATION]: 'double', [GEN_AI_CONTEXT_WINDOW_SIZE]: 'integer', @@ -12714,6 +12903,15 @@ export type AttributeName = | typeof FRAMES_SLOW | typeof FRAMES_TOTAL | typeof FS_ERROR + | typeof GCP_FUNCTION_CONTEXT_EVENTID + | typeof GCP_FUNCTION_CONTEXT_EVENTTYPE + | typeof GCP_FUNCTION_CONTEXT_ID + | typeof GCP_FUNCTION_CONTEXT_RESOURCE + | typeof GCP_FUNCTION_CONTEXT_SOURCE + | typeof GCP_FUNCTION_CONTEXT_SPECVERSION + | typeof GCP_FUNCTION_CONTEXT_TIME + | typeof GCP_FUNCTION_CONTEXT_TIMESTAMP + | typeof GCP_FUNCTION_CONTEXT_TYPE | typeof GEN_AI_AGENT_NAME | typeof GEN_AI_CONTEXT_UTILIZATION | typeof GEN_AI_CONTEXT_WINDOW_SIZE @@ -15552,6 +15750,96 @@ export const ATTRIBUTE_METADATA: Record = { sdks: ['javascript-node'], changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }], }, + [GCP_FUNCTION_CONTEXT_EVENTID]: { + brief: 'The legacy event ID of the GCP Cloud Function event', + type: 'string', + pii: { + isPii: 'false', + }, + isInOtel: false, + example: '1234567890', + changelog: [{ version: 'next', prs: [363], description: 'Added gcp.function.context.eventId attribute' }], + }, + [GCP_FUNCTION_CONTEXT_EVENTTYPE]: { + brief: 'The type of the GCP Cloud Function event', + type: 'string', + pii: { + isPii: 'false', + }, + isInOtel: false, + example: 'google.pubsub.topic.publish', + changelog: [{ version: 'next', prs: [363], description: 'Added gcp.function.context.eventType attribute' }], + }, + [GCP_FUNCTION_CONTEXT_ID]: { + brief: 'The unique ID of the GCP Cloud Function event', + type: 'string', + pii: { + isPii: 'false', + }, + isInOtel: false, + example: '1234567890', + changelog: [{ version: 'next', prs: [363], description: 'Added gcp.function.context.id attribute' }], + }, + [GCP_FUNCTION_CONTEXT_RESOURCE]: { + brief: 'The resource that triggered the GCP Cloud Function event', + type: 'string', + pii: { + isPii: 'false', + }, + isInOtel: false, + example: 'projects/my-project/topics/my-topic', + changelog: [{ version: 'next', prs: [363], description: 'Added gcp.function.context.resource attribute' }], + }, + [GCP_FUNCTION_CONTEXT_SOURCE]: { + brief: 'The source of the GCP Cloud Function event', + type: 'string', + pii: { + isPii: 'false', + }, + isInOtel: false, + example: '//pubsub.googleapis.com/projects/my-project/topics/my-topic', + changelog: [{ version: 'next', prs: [363], description: 'Added gcp.function.context.source attribute' }], + }, + [GCP_FUNCTION_CONTEXT_SPECVERSION]: { + brief: 'The CloudEvents specification version of the GCP Cloud Function event', + type: 'string', + pii: { + isPii: 'false', + }, + isInOtel: false, + example: '1.0', + changelog: [{ version: 'next', prs: [363], description: 'Added gcp.function.context.specversion attribute' }], + }, + [GCP_FUNCTION_CONTEXT_TIME]: { + brief: 'The timestamp of the GCP Cloud Function event', + type: 'string', + pii: { + isPii: 'false', + }, + isInOtel: false, + example: '2024-01-01T00:00:00.000Z', + changelog: [{ version: 'next', prs: [363], description: 'Added gcp.function.context.time attribute' }], + }, + [GCP_FUNCTION_CONTEXT_TIMESTAMP]: { + brief: 'The legacy timestamp of the GCP Cloud Function event', + type: 'string', + pii: { + isPii: 'false', + }, + isInOtel: false, + example: '2024-01-01T00:00:00.000Z', + changelog: [{ version: 'next', prs: [363], description: 'Added gcp.function.context.timestamp attribute' }], + }, + [GCP_FUNCTION_CONTEXT_TYPE]: { + brief: 'The type of the GCP Cloud Function event context', + type: 'string', + pii: { + isPii: 'false', + }, + isInOtel: false, + example: 'cloud_functions.context', + changelog: [{ version: 'next', prs: [363], description: 'Added gcp.function.context.type attribute' }], + }, [GEN_AI_AGENT_NAME]: { brief: 'The name of the agent being used.', type: 'string', @@ -20260,6 +20548,15 @@ export type Attributes = { [FRAMES_SLOW]?: FRAMES_SLOW_TYPE; [FRAMES_TOTAL]?: FRAMES_TOTAL_TYPE; [FS_ERROR]?: FS_ERROR_TYPE; + [GCP_FUNCTION_CONTEXT_EVENTID]?: GCP_FUNCTION_CONTEXT_EVENTID_TYPE; + [GCP_FUNCTION_CONTEXT_EVENTTYPE]?: GCP_FUNCTION_CONTEXT_EVENTTYPE_TYPE; + [GCP_FUNCTION_CONTEXT_ID]?: GCP_FUNCTION_CONTEXT_ID_TYPE; + [GCP_FUNCTION_CONTEXT_RESOURCE]?: GCP_FUNCTION_CONTEXT_RESOURCE_TYPE; + [GCP_FUNCTION_CONTEXT_SOURCE]?: GCP_FUNCTION_CONTEXT_SOURCE_TYPE; + [GCP_FUNCTION_CONTEXT_SPECVERSION]?: GCP_FUNCTION_CONTEXT_SPECVERSION_TYPE; + [GCP_FUNCTION_CONTEXT_TIME]?: GCP_FUNCTION_CONTEXT_TIME_TYPE; + [GCP_FUNCTION_CONTEXT_TIMESTAMP]?: GCP_FUNCTION_CONTEXT_TIMESTAMP_TYPE; + [GCP_FUNCTION_CONTEXT_TYPE]?: GCP_FUNCTION_CONTEXT_TYPE_TYPE; [GEN_AI_AGENT_NAME]?: GEN_AI_AGENT_NAME_TYPE; [GEN_AI_CONTEXT_UTILIZATION]?: GEN_AI_CONTEXT_UTILIZATION_TYPE; [GEN_AI_CONTEXT_WINDOW_SIZE]?: GEN_AI_CONTEXT_WINDOW_SIZE_TYPE; diff --git a/model/attributes/gcp/gcp__function__context__eventId.json b/model/attributes/gcp/gcp__function__context__eventId.json new file mode 100644 index 00000000..55087cd1 --- /dev/null +++ b/model/attributes/gcp/gcp__function__context__eventId.json @@ -0,0 +1,17 @@ +{ + "key": "gcp.function.context.eventId", + "brief": "The legacy event ID of the GCP Cloud Function event", + "type": "string", + "pii": { + "key": "false" + }, + "is_in_otel": false, + "example": "1234567890", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added gcp.function.context.eventId attribute" + } + ] +} diff --git a/model/attributes/gcp/gcp__function__context__eventType.json b/model/attributes/gcp/gcp__function__context__eventType.json new file mode 100644 index 00000000..f250fcc5 --- /dev/null +++ b/model/attributes/gcp/gcp__function__context__eventType.json @@ -0,0 +1,17 @@ +{ + "key": "gcp.function.context.eventType", + "brief": "The type of the GCP Cloud Function event", + "type": "string", + "pii": { + "key": "false" + }, + "is_in_otel": false, + "example": "google.pubsub.topic.publish", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added gcp.function.context.eventType attribute" + } + ] +} diff --git a/model/attributes/gcp/gcp__function__context__id.json b/model/attributes/gcp/gcp__function__context__id.json new file mode 100644 index 00000000..667e952d --- /dev/null +++ b/model/attributes/gcp/gcp__function__context__id.json @@ -0,0 +1,17 @@ +{ + "key": "gcp.function.context.id", + "brief": "The unique ID of the GCP Cloud Function event", + "type": "string", + "pii": { + "key": "false" + }, + "is_in_otel": false, + "example": "1234567890", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added gcp.function.context.id attribute" + } + ] +} diff --git a/model/attributes/gcp/gcp__function__context__resource.json b/model/attributes/gcp/gcp__function__context__resource.json new file mode 100644 index 00000000..96a5cc2a --- /dev/null +++ b/model/attributes/gcp/gcp__function__context__resource.json @@ -0,0 +1,17 @@ +{ + "key": "gcp.function.context.resource", + "brief": "The resource that triggered the GCP Cloud Function event", + "type": "string", + "pii": { + "key": "false" + }, + "is_in_otel": false, + "example": "projects/my-project/topics/my-topic", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added gcp.function.context.resource attribute" + } + ] +} diff --git a/model/attributes/gcp/gcp__function__context__source.json b/model/attributes/gcp/gcp__function__context__source.json new file mode 100644 index 00000000..fc4580bc --- /dev/null +++ b/model/attributes/gcp/gcp__function__context__source.json @@ -0,0 +1,17 @@ +{ + "key": "gcp.function.context.source", + "brief": "The source of the GCP Cloud Function event", + "type": "string", + "pii": { + "key": "false" + }, + "is_in_otel": false, + "example": "//pubsub.googleapis.com/projects/my-project/topics/my-topic", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added gcp.function.context.source attribute" + } + ] +} diff --git a/model/attributes/gcp/gcp__function__context__specversion.json b/model/attributes/gcp/gcp__function__context__specversion.json new file mode 100644 index 00000000..9a69ed2f --- /dev/null +++ b/model/attributes/gcp/gcp__function__context__specversion.json @@ -0,0 +1,17 @@ +{ + "key": "gcp.function.context.specversion", + "brief": "The CloudEvents specification version of the GCP Cloud Function event", + "type": "string", + "pii": { + "key": "false" + }, + "is_in_otel": false, + "example": "1.0", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added gcp.function.context.specversion attribute" + } + ] +} diff --git a/model/attributes/gcp/gcp__function__context__time.json b/model/attributes/gcp/gcp__function__context__time.json new file mode 100644 index 00000000..8a3b2329 --- /dev/null +++ b/model/attributes/gcp/gcp__function__context__time.json @@ -0,0 +1,17 @@ +{ + "key": "gcp.function.context.time", + "brief": "The timestamp of the GCP Cloud Function event", + "type": "string", + "pii": { + "key": "false" + }, + "is_in_otel": false, + "example": "2024-01-01T00:00:00.000Z", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added gcp.function.context.time attribute" + } + ] +} diff --git a/model/attributes/gcp/gcp__function__context__timestamp.json b/model/attributes/gcp/gcp__function__context__timestamp.json new file mode 100644 index 00000000..e0f1a496 --- /dev/null +++ b/model/attributes/gcp/gcp__function__context__timestamp.json @@ -0,0 +1,17 @@ +{ + "key": "gcp.function.context.timestamp", + "brief": "The legacy timestamp of the GCP Cloud Function event", + "type": "string", + "pii": { + "key": "false" + }, + "is_in_otel": false, + "example": "2024-01-01T00:00:00.000Z", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added gcp.function.context.timestamp attribute" + } + ] +} diff --git a/model/attributes/gcp/gcp__function__context__type.json b/model/attributes/gcp/gcp__function__context__type.json new file mode 100644 index 00000000..29cd0e6d --- /dev/null +++ b/model/attributes/gcp/gcp__function__context__type.json @@ -0,0 +1,17 @@ +{ + "key": "gcp.function.context.type", + "brief": "The type of the GCP Cloud Function event context", + "type": "string", + "pii": { + "key": "false" + }, + "is_in_otel": false, + "example": "cloud_functions.context", + "changelog": [ + { + "version": "next", + "prs": [363], + "description": "Added gcp.function.context.type attribute" + } + ] +} diff --git a/python/src/sentry_conventions/attributes.py b/python/src/sentry_conventions/attributes.py index 5563bd91..031d3bcc 100644 --- a/python/src/sentry_conventions/attributes.py +++ b/python/src/sentry_conventions/attributes.py @@ -2376,6 +2376,114 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): Example: "ENOENT: no such file or directory" """ + # Path: model/attributes/gcp/gcp__function__context__eventId.json + GCP_FUNCTION_CONTEXT_EVENTID: Literal["gcp.function.context.eventId"] = ( + "gcp.function.context.eventId" + ) + """The legacy event ID of the GCP Cloud Function event + + Type: str + Contains PII: false + Defined in OTEL: No + Example: "1234567890" + """ + + # Path: model/attributes/gcp/gcp__function__context__eventType.json + GCP_FUNCTION_CONTEXT_EVENTTYPE: Literal["gcp.function.context.eventType"] = ( + "gcp.function.context.eventType" + ) + """The type of the GCP Cloud Function event + + Type: str + Contains PII: false + Defined in OTEL: No + Example: "google.pubsub.topic.publish" + """ + + # Path: model/attributes/gcp/gcp__function__context__id.json + GCP_FUNCTION_CONTEXT_ID: Literal["gcp.function.context.id"] = ( + "gcp.function.context.id" + ) + """The unique ID of the GCP Cloud Function event + + Type: str + Contains PII: false + Defined in OTEL: No + Example: "1234567890" + """ + + # Path: model/attributes/gcp/gcp__function__context__resource.json + GCP_FUNCTION_CONTEXT_RESOURCE: Literal["gcp.function.context.resource"] = ( + "gcp.function.context.resource" + ) + """The resource that triggered the GCP Cloud Function event + + Type: str + Contains PII: false + Defined in OTEL: No + Example: "projects/my-project/topics/my-topic" + """ + + # Path: model/attributes/gcp/gcp__function__context__source.json + GCP_FUNCTION_CONTEXT_SOURCE: Literal["gcp.function.context.source"] = ( + "gcp.function.context.source" + ) + """The source of the GCP Cloud Function event + + Type: str + Contains PII: false + Defined in OTEL: No + Example: "//pubsub.googleapis.com/projects/my-project/topics/my-topic" + """ + + # Path: model/attributes/gcp/gcp__function__context__specversion.json + GCP_FUNCTION_CONTEXT_SPECVERSION: Literal["gcp.function.context.specversion"] = ( + "gcp.function.context.specversion" + ) + """The CloudEvents specification version of the GCP Cloud Function event + + Type: str + Contains PII: false + Defined in OTEL: No + Example: "1.0" + """ + + # Path: model/attributes/gcp/gcp__function__context__time.json + GCP_FUNCTION_CONTEXT_TIME: Literal["gcp.function.context.time"] = ( + "gcp.function.context.time" + ) + """The timestamp of the GCP Cloud Function event + + Type: str + Contains PII: false + Defined in OTEL: No + Example: "2024-01-01T00:00:00.000Z" + """ + + # Path: model/attributes/gcp/gcp__function__context__timestamp.json + GCP_FUNCTION_CONTEXT_TIMESTAMP: Literal["gcp.function.context.timestamp"] = ( + "gcp.function.context.timestamp" + ) + """The legacy timestamp of the GCP Cloud Function event + + Type: str + Contains PII: false + Defined in OTEL: No + Example: "2024-01-01T00:00:00.000Z" + """ + + # Path: model/attributes/gcp/gcp__function__context__type.json + GCP_FUNCTION_CONTEXT_TYPE: Literal["gcp.function.context.type"] = ( + "gcp.function.context.type" + ) + """The type of the GCP Cloud Function event context + + Type: str + Contains PII: false + Defined in OTEL: No + Example: "cloud_functions.context" + """ + # Path: model/attributes/gen_ai/gen_ai__agent__name.json GEN_AI_AGENT_NAME: Literal["gen_ai.agent.name"] = "gen_ai.agent.name" """The name of the agent being used. @@ -9340,6 +9448,132 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): ChangelogEntry(version="0.0.0"), ], ), + "gcp.function.context.eventId": AttributeMetadata( + brief="The legacy event ID of the GCP Cloud Function event", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.FALSE), + is_in_otel=False, + example="1234567890", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added gcp.function.context.eventId attribute", + ), + ], + ), + "gcp.function.context.eventType": AttributeMetadata( + brief="The type of the GCP Cloud Function event", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.FALSE), + is_in_otel=False, + example="google.pubsub.topic.publish", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added gcp.function.context.eventType attribute", + ), + ], + ), + "gcp.function.context.id": AttributeMetadata( + brief="The unique ID of the GCP Cloud Function event", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.FALSE), + is_in_otel=False, + example="1234567890", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added gcp.function.context.id attribute", + ), + ], + ), + "gcp.function.context.resource": AttributeMetadata( + brief="The resource that triggered the GCP Cloud Function event", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.FALSE), + is_in_otel=False, + example="projects/my-project/topics/my-topic", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added gcp.function.context.resource attribute", + ), + ], + ), + "gcp.function.context.source": AttributeMetadata( + brief="The source of the GCP Cloud Function event", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.FALSE), + is_in_otel=False, + example="//pubsub.googleapis.com/projects/my-project/topics/my-topic", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added gcp.function.context.source attribute", + ), + ], + ), + "gcp.function.context.specversion": AttributeMetadata( + brief="The CloudEvents specification version of the GCP Cloud Function event", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.FALSE), + is_in_otel=False, + example="1.0", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added gcp.function.context.specversion attribute", + ), + ], + ), + "gcp.function.context.time": AttributeMetadata( + brief="The timestamp of the GCP Cloud Function event", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.FALSE), + is_in_otel=False, + example="2024-01-01T00:00:00.000Z", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added gcp.function.context.time attribute", + ), + ], + ), + "gcp.function.context.timestamp": AttributeMetadata( + brief="The legacy timestamp of the GCP Cloud Function event", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.FALSE), + is_in_otel=False, + example="2024-01-01T00:00:00.000Z", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added gcp.function.context.timestamp attribute", + ), + ], + ), + "gcp.function.context.type": AttributeMetadata( + brief="The type of the GCP Cloud Function event context", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.FALSE), + is_in_otel=False, + example="cloud_functions.context", + changelog=[ + ChangelogEntry( + version="next", + prs=[363], + description="Added gcp.function.context.type attribute", + ), + ], + ), "gen_ai.agent.name": AttributeMetadata( brief="The name of the agent being used.", type=AttributeType.STRING, @@ -14123,6 +14357,15 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "frames.slow": int, "frames.total": int, "fs_error": str, + "gcp.function.context.eventId": str, + "gcp.function.context.eventType": str, + "gcp.function.context.id": str, + "gcp.function.context.resource": str, + "gcp.function.context.source": str, + "gcp.function.context.specversion": str, + "gcp.function.context.time": str, + "gcp.function.context.timestamp": str, + "gcp.function.context.type": str, "gen_ai.agent.name": str, "gen_ai.context.utilization": float, "gen_ai.context.window_size": int, From 89ee20a492e87f1b6b0248337f01c95fafdacb40 Mon Sep 17 00:00:00 2001 From: Charly Gomez Date: Tue, 12 May 2026 15:53:51 +0200 Subject: [PATCH 2/3] fix(attributes): Rename GCP camelCase attributes to snake_case Rename gcp.function.context.eventId to event_id and eventType to event_type to comply with the repo's snake_case naming policy. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../sentry-conventions/src/attributes.ts | 44 +++++++++---------- ... => gcp__function__context__event_id.json} | 6 +-- ...> gcp__function__context__event_type.json} | 6 +-- python/src/sentry_conventions/attributes.py | 28 ++++++------ 4 files changed, 42 insertions(+), 42 deletions(-) rename model/attributes/gcp/{gcp__function__context__eventId.json => gcp__function__context__event_id.json} (64%) rename model/attributes/gcp/{gcp__function__context__eventType.json => gcp__function__context__event_type.json} (63%) diff --git a/javascript/sentry-conventions/src/attributes.ts b/javascript/sentry-conventions/src/attributes.ts index e6995633..e944e164 100644 --- a/javascript/sentry-conventions/src/attributes.ts +++ b/javascript/sentry-conventions/src/attributes.ts @@ -4013,12 +4013,12 @@ export const FS_ERROR = 'fs_error'; */ export type FS_ERROR_TYPE = string; -// Path: model/attributes/gcp/gcp__function__context__eventId.json +// Path: model/attributes/gcp/gcp__function__context__event_id.json /** - * The legacy event ID of the GCP Cloud Function event `gcp.function.context.eventId` + * The legacy event ID of the GCP Cloud Function event `gcp.function.context.event_id` * - * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_EVENTID_TYPE} + * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_EVENT_ID_TYPE} * * Contains PII: false * @@ -4026,19 +4026,19 @@ export type FS_ERROR_TYPE = string; * * @example "1234567890" */ -export const GCP_FUNCTION_CONTEXT_EVENTID = 'gcp.function.context.eventId'; +export const GCP_FUNCTION_CONTEXT_EVENT_ID = 'gcp.function.context.event_id'; /** - * Type for {@link GCP_FUNCTION_CONTEXT_EVENTID} gcp.function.context.eventId + * Type for {@link GCP_FUNCTION_CONTEXT_EVENT_ID} gcp.function.context.event_id */ -export type GCP_FUNCTION_CONTEXT_EVENTID_TYPE = string; +export type GCP_FUNCTION_CONTEXT_EVENT_ID_TYPE = string; -// Path: model/attributes/gcp/gcp__function__context__eventType.json +// Path: model/attributes/gcp/gcp__function__context__event_type.json /** - * The type of the GCP Cloud Function event `gcp.function.context.eventType` + * The type of the GCP Cloud Function event `gcp.function.context.event_type` * - * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_EVENTTYPE_TYPE} + * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_EVENT_TYPE_TYPE} * * Contains PII: false * @@ -4046,12 +4046,12 @@ export type GCP_FUNCTION_CONTEXT_EVENTID_TYPE = string; * * @example "google.pubsub.topic.publish" */ -export const GCP_FUNCTION_CONTEXT_EVENTTYPE = 'gcp.function.context.eventType'; +export const GCP_FUNCTION_CONTEXT_EVENT_TYPE = 'gcp.function.context.event_type'; /** - * Type for {@link GCP_FUNCTION_CONTEXT_EVENTTYPE} gcp.function.context.eventType + * Type for {@link GCP_FUNCTION_CONTEXT_EVENT_TYPE} gcp.function.context.event_type */ -export type GCP_FUNCTION_CONTEXT_EVENTTYPE_TYPE = string; +export type GCP_FUNCTION_CONTEXT_EVENT_TYPE_TYPE = string; // Path: model/attributes/gcp/gcp__function__context__id.json @@ -12324,8 +12324,8 @@ export const ATTRIBUTE_TYPE: Record = { [FRAMES_SLOW]: 'integer', [FRAMES_TOTAL]: 'integer', [FS_ERROR]: 'string', - [GCP_FUNCTION_CONTEXT_EVENTID]: 'string', - [GCP_FUNCTION_CONTEXT_EVENTTYPE]: 'string', + [GCP_FUNCTION_CONTEXT_EVENT_ID]: 'string', + [GCP_FUNCTION_CONTEXT_EVENT_TYPE]: 'string', [GCP_FUNCTION_CONTEXT_ID]: 'string', [GCP_FUNCTION_CONTEXT_RESOURCE]: 'string', [GCP_FUNCTION_CONTEXT_SOURCE]: 'string', @@ -12903,8 +12903,8 @@ export type AttributeName = | typeof FRAMES_SLOW | typeof FRAMES_TOTAL | typeof FS_ERROR - | typeof GCP_FUNCTION_CONTEXT_EVENTID - | typeof GCP_FUNCTION_CONTEXT_EVENTTYPE + | typeof GCP_FUNCTION_CONTEXT_EVENT_ID + | typeof GCP_FUNCTION_CONTEXT_EVENT_TYPE | typeof GCP_FUNCTION_CONTEXT_ID | typeof GCP_FUNCTION_CONTEXT_RESOURCE | typeof GCP_FUNCTION_CONTEXT_SOURCE @@ -15750,7 +15750,7 @@ export const ATTRIBUTE_METADATA: Record = { sdks: ['javascript-node'], changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }], }, - [GCP_FUNCTION_CONTEXT_EVENTID]: { + [GCP_FUNCTION_CONTEXT_EVENT_ID]: { brief: 'The legacy event ID of the GCP Cloud Function event', type: 'string', pii: { @@ -15758,9 +15758,9 @@ export const ATTRIBUTE_METADATA: Record = { }, isInOtel: false, example: '1234567890', - changelog: [{ version: 'next', prs: [363], description: 'Added gcp.function.context.eventId attribute' }], + changelog: [{ version: 'next', prs: [372], description: 'Added gcp.function.context.event_id attribute' }], }, - [GCP_FUNCTION_CONTEXT_EVENTTYPE]: { + [GCP_FUNCTION_CONTEXT_EVENT_TYPE]: { brief: 'The type of the GCP Cloud Function event', type: 'string', pii: { @@ -15768,7 +15768,7 @@ export const ATTRIBUTE_METADATA: Record = { }, isInOtel: false, example: 'google.pubsub.topic.publish', - changelog: [{ version: 'next', prs: [363], description: 'Added gcp.function.context.eventType attribute' }], + changelog: [{ version: 'next', prs: [372], description: 'Added gcp.function.context.event_type attribute' }], }, [GCP_FUNCTION_CONTEXT_ID]: { brief: 'The unique ID of the GCP Cloud Function event', @@ -20548,8 +20548,8 @@ export type Attributes = { [FRAMES_SLOW]?: FRAMES_SLOW_TYPE; [FRAMES_TOTAL]?: FRAMES_TOTAL_TYPE; [FS_ERROR]?: FS_ERROR_TYPE; - [GCP_FUNCTION_CONTEXT_EVENTID]?: GCP_FUNCTION_CONTEXT_EVENTID_TYPE; - [GCP_FUNCTION_CONTEXT_EVENTTYPE]?: GCP_FUNCTION_CONTEXT_EVENTTYPE_TYPE; + [GCP_FUNCTION_CONTEXT_EVENT_ID]?: GCP_FUNCTION_CONTEXT_EVENT_ID_TYPE; + [GCP_FUNCTION_CONTEXT_EVENT_TYPE]?: GCP_FUNCTION_CONTEXT_EVENT_TYPE_TYPE; [GCP_FUNCTION_CONTEXT_ID]?: GCP_FUNCTION_CONTEXT_ID_TYPE; [GCP_FUNCTION_CONTEXT_RESOURCE]?: GCP_FUNCTION_CONTEXT_RESOURCE_TYPE; [GCP_FUNCTION_CONTEXT_SOURCE]?: GCP_FUNCTION_CONTEXT_SOURCE_TYPE; diff --git a/model/attributes/gcp/gcp__function__context__eventId.json b/model/attributes/gcp/gcp__function__context__event_id.json similarity index 64% rename from model/attributes/gcp/gcp__function__context__eventId.json rename to model/attributes/gcp/gcp__function__context__event_id.json index 55087cd1..df51d2ad 100644 --- a/model/attributes/gcp/gcp__function__context__eventId.json +++ b/model/attributes/gcp/gcp__function__context__event_id.json @@ -1,5 +1,5 @@ { - "key": "gcp.function.context.eventId", + "key": "gcp.function.context.event_id", "brief": "The legacy event ID of the GCP Cloud Function event", "type": "string", "pii": { @@ -10,8 +10,8 @@ "changelog": [ { "version": "next", - "prs": [363], - "description": "Added gcp.function.context.eventId attribute" + "prs": [372], + "description": "Added gcp.function.context.event_id attribute" } ] } diff --git a/model/attributes/gcp/gcp__function__context__eventType.json b/model/attributes/gcp/gcp__function__context__event_type.json similarity index 63% rename from model/attributes/gcp/gcp__function__context__eventType.json rename to model/attributes/gcp/gcp__function__context__event_type.json index f250fcc5..2d8c32be 100644 --- a/model/attributes/gcp/gcp__function__context__eventType.json +++ b/model/attributes/gcp/gcp__function__context__event_type.json @@ -1,5 +1,5 @@ { - "key": "gcp.function.context.eventType", + "key": "gcp.function.context.event_type", "brief": "The type of the GCP Cloud Function event", "type": "string", "pii": { @@ -10,8 +10,8 @@ "changelog": [ { "version": "next", - "prs": [363], - "description": "Added gcp.function.context.eventType attribute" + "prs": [372], + "description": "Added gcp.function.context.event_type attribute" } ] } diff --git a/python/src/sentry_conventions/attributes.py b/python/src/sentry_conventions/attributes.py index 031d3bcc..c2116c05 100644 --- a/python/src/sentry_conventions/attributes.py +++ b/python/src/sentry_conventions/attributes.py @@ -2376,9 +2376,9 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): Example: "ENOENT: no such file or directory" """ - # Path: model/attributes/gcp/gcp__function__context__eventId.json - GCP_FUNCTION_CONTEXT_EVENTID: Literal["gcp.function.context.eventId"] = ( - "gcp.function.context.eventId" + # Path: model/attributes/gcp/gcp__function__context__event_id.json + GCP_FUNCTION_CONTEXT_EVENT_ID: Literal["gcp.function.context.event_id"] = ( + "gcp.function.context.event_id" ) """The legacy event ID of the GCP Cloud Function event @@ -2388,9 +2388,9 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): Example: "1234567890" """ - # Path: model/attributes/gcp/gcp__function__context__eventType.json - GCP_FUNCTION_CONTEXT_EVENTTYPE: Literal["gcp.function.context.eventType"] = ( - "gcp.function.context.eventType" + # Path: model/attributes/gcp/gcp__function__context__event_type.json + GCP_FUNCTION_CONTEXT_EVENT_TYPE: Literal["gcp.function.context.event_type"] = ( + "gcp.function.context.event_type" ) """The type of the GCP Cloud Function event @@ -9448,7 +9448,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): ChangelogEntry(version="0.0.0"), ], ), - "gcp.function.context.eventId": AttributeMetadata( + "gcp.function.context.event_id": AttributeMetadata( brief="The legacy event ID of the GCP Cloud Function event", type=AttributeType.STRING, pii=PiiInfo(isPii=IsPii.FALSE), @@ -9457,12 +9457,12 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): changelog=[ ChangelogEntry( version="next", - prs=[363], - description="Added gcp.function.context.eventId attribute", + prs=[372], + description="Added gcp.function.context.event_id attribute", ), ], ), - "gcp.function.context.eventType": AttributeMetadata( + "gcp.function.context.event_type": AttributeMetadata( brief="The type of the GCP Cloud Function event", type=AttributeType.STRING, pii=PiiInfo(isPii=IsPii.FALSE), @@ -9471,8 +9471,8 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): changelog=[ ChangelogEntry( version="next", - prs=[363], - description="Added gcp.function.context.eventType attribute", + prs=[372], + description="Added gcp.function.context.event_type attribute", ), ], ), @@ -14357,8 +14357,8 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "frames.slow": int, "frames.total": int, "fs_error": str, - "gcp.function.context.eventId": str, - "gcp.function.context.eventType": str, + "gcp.function.context.event_id": str, + "gcp.function.context.event_type": str, "gcp.function.context.id": str, "gcp.function.context.resource": str, "gcp.function.context.source": str, From e0954d5ec01ac4abc0e9648d80d714fd26132cc5 Mon Sep 17 00:00:00 2001 From: Charly Gomez Date: Fri, 15 May 2026 13:22:51 +0200 Subject: [PATCH 3/3] fix(attributes): Set pii to maybe for gcp attributes Co-Authored-By: Claude Opus 4.6 (1M context) --- .../sentry-conventions/src/attributes.ts | 36 +++++++++---------- .../gcp/gcp__function__context__event_id.json | 2 +- .../gcp__function__context__event_type.json | 2 +- .../gcp/gcp__function__context__id.json | 2 +- .../gcp/gcp__function__context__resource.json | 2 +- .../gcp/gcp__function__context__source.json | 2 +- .../gcp__function__context__specversion.json | 2 +- .../gcp/gcp__function__context__time.json | 2 +- .../gcp__function__context__timestamp.json | 2 +- .../gcp/gcp__function__context__type.json | 2 +- python/src/sentry_conventions/attributes.py | 36 +++++++++---------- 11 files changed, 45 insertions(+), 45 deletions(-) diff --git a/javascript/sentry-conventions/src/attributes.ts b/javascript/sentry-conventions/src/attributes.ts index e944e164..e5253297 100644 --- a/javascript/sentry-conventions/src/attributes.ts +++ b/javascript/sentry-conventions/src/attributes.ts @@ -4020,7 +4020,7 @@ export type FS_ERROR_TYPE = string; * * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_EVENT_ID_TYPE} * - * Contains PII: false + * Contains PII: maybe * * Attribute defined in OTEL: No * @@ -4040,7 +4040,7 @@ export type GCP_FUNCTION_CONTEXT_EVENT_ID_TYPE = string; * * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_EVENT_TYPE_TYPE} * - * Contains PII: false + * Contains PII: maybe * * Attribute defined in OTEL: No * @@ -4060,7 +4060,7 @@ export type GCP_FUNCTION_CONTEXT_EVENT_TYPE_TYPE = string; * * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_ID_TYPE} * - * Contains PII: false + * Contains PII: maybe * * Attribute defined in OTEL: No * @@ -4080,7 +4080,7 @@ export type GCP_FUNCTION_CONTEXT_ID_TYPE = string; * * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_RESOURCE_TYPE} * - * Contains PII: false + * Contains PII: maybe * * Attribute defined in OTEL: No * @@ -4100,7 +4100,7 @@ export type GCP_FUNCTION_CONTEXT_RESOURCE_TYPE = string; * * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_SOURCE_TYPE} * - * Contains PII: false + * Contains PII: maybe * * Attribute defined in OTEL: No * @@ -4120,7 +4120,7 @@ export type GCP_FUNCTION_CONTEXT_SOURCE_TYPE = string; * * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_SPECVERSION_TYPE} * - * Contains PII: false + * Contains PII: maybe * * Attribute defined in OTEL: No * @@ -4140,7 +4140,7 @@ export type GCP_FUNCTION_CONTEXT_SPECVERSION_TYPE = string; * * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_TIME_TYPE} * - * Contains PII: false + * Contains PII: maybe * * Attribute defined in OTEL: No * @@ -4160,7 +4160,7 @@ export type GCP_FUNCTION_CONTEXT_TIME_TYPE = string; * * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_TIMESTAMP_TYPE} * - * Contains PII: false + * Contains PII: maybe * * Attribute defined in OTEL: No * @@ -4180,7 +4180,7 @@ export type GCP_FUNCTION_CONTEXT_TIMESTAMP_TYPE = string; * * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_TYPE_TYPE} * - * Contains PII: false + * Contains PII: maybe * * Attribute defined in OTEL: No * @@ -15754,7 +15754,7 @@ export const ATTRIBUTE_METADATA: Record = { brief: 'The legacy event ID of the GCP Cloud Function event', type: 'string', pii: { - isPii: 'false', + isPii: 'maybe', }, isInOtel: false, example: '1234567890', @@ -15764,7 +15764,7 @@ export const ATTRIBUTE_METADATA: Record = { brief: 'The type of the GCP Cloud Function event', type: 'string', pii: { - isPii: 'false', + isPii: 'maybe', }, isInOtel: false, example: 'google.pubsub.topic.publish', @@ -15774,7 +15774,7 @@ export const ATTRIBUTE_METADATA: Record = { brief: 'The unique ID of the GCP Cloud Function event', type: 'string', pii: { - isPii: 'false', + isPii: 'maybe', }, isInOtel: false, example: '1234567890', @@ -15784,7 +15784,7 @@ export const ATTRIBUTE_METADATA: Record = { brief: 'The resource that triggered the GCP Cloud Function event', type: 'string', pii: { - isPii: 'false', + isPii: 'maybe', }, isInOtel: false, example: 'projects/my-project/topics/my-topic', @@ -15794,7 +15794,7 @@ export const ATTRIBUTE_METADATA: Record = { brief: 'The source of the GCP Cloud Function event', type: 'string', pii: { - isPii: 'false', + isPii: 'maybe', }, isInOtel: false, example: '//pubsub.googleapis.com/projects/my-project/topics/my-topic', @@ -15804,7 +15804,7 @@ export const ATTRIBUTE_METADATA: Record = { brief: 'The CloudEvents specification version of the GCP Cloud Function event', type: 'string', pii: { - isPii: 'false', + isPii: 'maybe', }, isInOtel: false, example: '1.0', @@ -15814,7 +15814,7 @@ export const ATTRIBUTE_METADATA: Record = { brief: 'The timestamp of the GCP Cloud Function event', type: 'string', pii: { - isPii: 'false', + isPii: 'maybe', }, isInOtel: false, example: '2024-01-01T00:00:00.000Z', @@ -15824,7 +15824,7 @@ export const ATTRIBUTE_METADATA: Record = { brief: 'The legacy timestamp of the GCP Cloud Function event', type: 'string', pii: { - isPii: 'false', + isPii: 'maybe', }, isInOtel: false, example: '2024-01-01T00:00:00.000Z', @@ -15834,7 +15834,7 @@ export const ATTRIBUTE_METADATA: Record = { brief: 'The type of the GCP Cloud Function event context', type: 'string', pii: { - isPii: 'false', + isPii: 'maybe', }, isInOtel: false, example: 'cloud_functions.context', diff --git a/model/attributes/gcp/gcp__function__context__event_id.json b/model/attributes/gcp/gcp__function__context__event_id.json index df51d2ad..d8243e4e 100644 --- a/model/attributes/gcp/gcp__function__context__event_id.json +++ b/model/attributes/gcp/gcp__function__context__event_id.json @@ -3,7 +3,7 @@ "brief": "The legacy event ID of the GCP Cloud Function event", "type": "string", "pii": { - "key": "false" + "key": "maybe" }, "is_in_otel": false, "example": "1234567890", diff --git a/model/attributes/gcp/gcp__function__context__event_type.json b/model/attributes/gcp/gcp__function__context__event_type.json index 2d8c32be..0f3bc8d9 100644 --- a/model/attributes/gcp/gcp__function__context__event_type.json +++ b/model/attributes/gcp/gcp__function__context__event_type.json @@ -3,7 +3,7 @@ "brief": "The type of the GCP Cloud Function event", "type": "string", "pii": { - "key": "false" + "key": "maybe" }, "is_in_otel": false, "example": "google.pubsub.topic.publish", diff --git a/model/attributes/gcp/gcp__function__context__id.json b/model/attributes/gcp/gcp__function__context__id.json index 667e952d..5a5ecce5 100644 --- a/model/attributes/gcp/gcp__function__context__id.json +++ b/model/attributes/gcp/gcp__function__context__id.json @@ -3,7 +3,7 @@ "brief": "The unique ID of the GCP Cloud Function event", "type": "string", "pii": { - "key": "false" + "key": "maybe" }, "is_in_otel": false, "example": "1234567890", diff --git a/model/attributes/gcp/gcp__function__context__resource.json b/model/attributes/gcp/gcp__function__context__resource.json index 96a5cc2a..ee7e8e74 100644 --- a/model/attributes/gcp/gcp__function__context__resource.json +++ b/model/attributes/gcp/gcp__function__context__resource.json @@ -3,7 +3,7 @@ "brief": "The resource that triggered the GCP Cloud Function event", "type": "string", "pii": { - "key": "false" + "key": "maybe" }, "is_in_otel": false, "example": "projects/my-project/topics/my-topic", diff --git a/model/attributes/gcp/gcp__function__context__source.json b/model/attributes/gcp/gcp__function__context__source.json index fc4580bc..91bc5162 100644 --- a/model/attributes/gcp/gcp__function__context__source.json +++ b/model/attributes/gcp/gcp__function__context__source.json @@ -3,7 +3,7 @@ "brief": "The source of the GCP Cloud Function event", "type": "string", "pii": { - "key": "false" + "key": "maybe" }, "is_in_otel": false, "example": "//pubsub.googleapis.com/projects/my-project/topics/my-topic", diff --git a/model/attributes/gcp/gcp__function__context__specversion.json b/model/attributes/gcp/gcp__function__context__specversion.json index 9a69ed2f..775c03f0 100644 --- a/model/attributes/gcp/gcp__function__context__specversion.json +++ b/model/attributes/gcp/gcp__function__context__specversion.json @@ -3,7 +3,7 @@ "brief": "The CloudEvents specification version of the GCP Cloud Function event", "type": "string", "pii": { - "key": "false" + "key": "maybe" }, "is_in_otel": false, "example": "1.0", diff --git a/model/attributes/gcp/gcp__function__context__time.json b/model/attributes/gcp/gcp__function__context__time.json index 8a3b2329..a5339008 100644 --- a/model/attributes/gcp/gcp__function__context__time.json +++ b/model/attributes/gcp/gcp__function__context__time.json @@ -3,7 +3,7 @@ "brief": "The timestamp of the GCP Cloud Function event", "type": "string", "pii": { - "key": "false" + "key": "maybe" }, "is_in_otel": false, "example": "2024-01-01T00:00:00.000Z", diff --git a/model/attributes/gcp/gcp__function__context__timestamp.json b/model/attributes/gcp/gcp__function__context__timestamp.json index e0f1a496..0e21000e 100644 --- a/model/attributes/gcp/gcp__function__context__timestamp.json +++ b/model/attributes/gcp/gcp__function__context__timestamp.json @@ -3,7 +3,7 @@ "brief": "The legacy timestamp of the GCP Cloud Function event", "type": "string", "pii": { - "key": "false" + "key": "maybe" }, "is_in_otel": false, "example": "2024-01-01T00:00:00.000Z", diff --git a/model/attributes/gcp/gcp__function__context__type.json b/model/attributes/gcp/gcp__function__context__type.json index 29cd0e6d..5673e8cd 100644 --- a/model/attributes/gcp/gcp__function__context__type.json +++ b/model/attributes/gcp/gcp__function__context__type.json @@ -3,7 +3,7 @@ "brief": "The type of the GCP Cloud Function event context", "type": "string", "pii": { - "key": "false" + "key": "maybe" }, "is_in_otel": false, "example": "cloud_functions.context", diff --git a/python/src/sentry_conventions/attributes.py b/python/src/sentry_conventions/attributes.py index c2116c05..14017356 100644 --- a/python/src/sentry_conventions/attributes.py +++ b/python/src/sentry_conventions/attributes.py @@ -2383,7 +2383,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): """The legacy event ID of the GCP Cloud Function event Type: str - Contains PII: false + Contains PII: maybe Defined in OTEL: No Example: "1234567890" """ @@ -2395,7 +2395,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): """The type of the GCP Cloud Function event Type: str - Contains PII: false + Contains PII: maybe Defined in OTEL: No Example: "google.pubsub.topic.publish" """ @@ -2407,7 +2407,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): """The unique ID of the GCP Cloud Function event Type: str - Contains PII: false + Contains PII: maybe Defined in OTEL: No Example: "1234567890" """ @@ -2419,7 +2419,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): """The resource that triggered the GCP Cloud Function event Type: str - Contains PII: false + Contains PII: maybe Defined in OTEL: No Example: "projects/my-project/topics/my-topic" """ @@ -2431,7 +2431,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): """The source of the GCP Cloud Function event Type: str - Contains PII: false + Contains PII: maybe Defined in OTEL: No Example: "//pubsub.googleapis.com/projects/my-project/topics/my-topic" """ @@ -2443,7 +2443,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): """The CloudEvents specification version of the GCP Cloud Function event Type: str - Contains PII: false + Contains PII: maybe Defined in OTEL: No Example: "1.0" """ @@ -2455,7 +2455,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): """The timestamp of the GCP Cloud Function event Type: str - Contains PII: false + Contains PII: maybe Defined in OTEL: No Example: "2024-01-01T00:00:00.000Z" """ @@ -2467,7 +2467,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): """The legacy timestamp of the GCP Cloud Function event Type: str - Contains PII: false + Contains PII: maybe Defined in OTEL: No Example: "2024-01-01T00:00:00.000Z" """ @@ -2479,7 +2479,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): """The type of the GCP Cloud Function event context Type: str - Contains PII: false + Contains PII: maybe Defined in OTEL: No Example: "cloud_functions.context" """ @@ -9451,7 +9451,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "gcp.function.context.event_id": AttributeMetadata( brief="The legacy event ID of the GCP Cloud Function event", type=AttributeType.STRING, - pii=PiiInfo(isPii=IsPii.FALSE), + pii=PiiInfo(isPii=IsPii.MAYBE), is_in_otel=False, example="1234567890", changelog=[ @@ -9465,7 +9465,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "gcp.function.context.event_type": AttributeMetadata( brief="The type of the GCP Cloud Function event", type=AttributeType.STRING, - pii=PiiInfo(isPii=IsPii.FALSE), + pii=PiiInfo(isPii=IsPii.MAYBE), is_in_otel=False, example="google.pubsub.topic.publish", changelog=[ @@ -9479,7 +9479,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "gcp.function.context.id": AttributeMetadata( brief="The unique ID of the GCP Cloud Function event", type=AttributeType.STRING, - pii=PiiInfo(isPii=IsPii.FALSE), + pii=PiiInfo(isPii=IsPii.MAYBE), is_in_otel=False, example="1234567890", changelog=[ @@ -9493,7 +9493,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "gcp.function.context.resource": AttributeMetadata( brief="The resource that triggered the GCP Cloud Function event", type=AttributeType.STRING, - pii=PiiInfo(isPii=IsPii.FALSE), + pii=PiiInfo(isPii=IsPii.MAYBE), is_in_otel=False, example="projects/my-project/topics/my-topic", changelog=[ @@ -9507,7 +9507,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "gcp.function.context.source": AttributeMetadata( brief="The source of the GCP Cloud Function event", type=AttributeType.STRING, - pii=PiiInfo(isPii=IsPii.FALSE), + pii=PiiInfo(isPii=IsPii.MAYBE), is_in_otel=False, example="//pubsub.googleapis.com/projects/my-project/topics/my-topic", changelog=[ @@ -9521,7 +9521,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "gcp.function.context.specversion": AttributeMetadata( brief="The CloudEvents specification version of the GCP Cloud Function event", type=AttributeType.STRING, - pii=PiiInfo(isPii=IsPii.FALSE), + pii=PiiInfo(isPii=IsPii.MAYBE), is_in_otel=False, example="1.0", changelog=[ @@ -9535,7 +9535,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "gcp.function.context.time": AttributeMetadata( brief="The timestamp of the GCP Cloud Function event", type=AttributeType.STRING, - pii=PiiInfo(isPii=IsPii.FALSE), + pii=PiiInfo(isPii=IsPii.MAYBE), is_in_otel=False, example="2024-01-01T00:00:00.000Z", changelog=[ @@ -9549,7 +9549,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "gcp.function.context.timestamp": AttributeMetadata( brief="The legacy timestamp of the GCP Cloud Function event", type=AttributeType.STRING, - pii=PiiInfo(isPii=IsPii.FALSE), + pii=PiiInfo(isPii=IsPii.MAYBE), is_in_otel=False, example="2024-01-01T00:00:00.000Z", changelog=[ @@ -9563,7 +9563,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta): "gcp.function.context.type": AttributeMetadata( brief="The type of the GCP Cloud Function event context", type=AttributeType.STRING, - pii=PiiInfo(isPii=IsPii.FALSE), + pii=PiiInfo(isPii=IsPii.MAYBE), is_in_otel=False, example="cloud_functions.context", changelog=[