diff --git a/javascript/sentry-conventions/src/attributes.ts b/javascript/sentry-conventions/src/attributes.ts index e74c1197..201cfa95 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__event_id.json + +/** + * The event ID from the legacy GCP Cloud Function context (1st gen) `gcp.function.context.event_id` + * + * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_EVENT_ID_TYPE} + * + * Contains PII: maybe + * + * Attribute defined in OTEL: No + * + * @example "1234567890" + */ +export const GCP_FUNCTION_CONTEXT_EVENT_ID = 'gcp.function.context.event_id'; + +/** + * Type for {@link GCP_FUNCTION_CONTEXT_EVENT_ID} gcp.function.context.event_id + */ +export type GCP_FUNCTION_CONTEXT_EVENT_ID_TYPE = string; + +// Path: model/attributes/gcp/gcp__function__context__event_type.json + +/** + * The type of the GCP Cloud Function event `gcp.function.context.event_type` + * + * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_EVENT_TYPE_TYPE} + * + * Contains PII: maybe + * + * Attribute defined in OTEL: No + * + * @example "google.pubsub.topic.publish" + */ +export const GCP_FUNCTION_CONTEXT_EVENT_TYPE = 'gcp.function.context.event_type'; + +/** + * Type for {@link GCP_FUNCTION_CONTEXT_EVENT_TYPE} gcp.function.context.event_type + */ +export type GCP_FUNCTION_CONTEXT_EVENT_TYPE_TYPE = string; + +// Path: model/attributes/gcp/gcp__function__context__id.json + +/** + * The unique event ID from the GCP CloudEvents context (2nd gen Cloud Functions) `gcp.function.context.id` + * + * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_ID_TYPE} + * + * Contains PII: maybe + * + * 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: maybe + * + * 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: maybe + * + * 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: maybe + * + * 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: maybe + * + * 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: maybe + * + * 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: maybe + * + * 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_EVENT_ID]: 'string', + [GCP_FUNCTION_CONTEXT_EVENT_TYPE]: '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_EVENT_ID + | typeof GCP_FUNCTION_CONTEXT_EVENT_TYPE + | 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_EVENT_ID]: { + brief: 'The event ID from the legacy GCP Cloud Function context (1st gen)', + type: 'string', + pii: { + isPii: 'maybe', + }, + isInOtel: false, + example: '1234567890', + changelog: [{ version: 'next', prs: [372], description: 'Added gcp.function.context.event_id attribute' }], + }, + [GCP_FUNCTION_CONTEXT_EVENT_TYPE]: { + brief: 'The type of the GCP Cloud Function event', + type: 'string', + pii: { + isPii: 'maybe', + }, + isInOtel: false, + example: 'google.pubsub.topic.publish', + changelog: [{ version: 'next', prs: [372], description: 'Added gcp.function.context.event_type attribute' }], + }, + [GCP_FUNCTION_CONTEXT_ID]: { + brief: 'The unique event ID from the GCP CloudEvents context (2nd gen Cloud Functions)', + type: 'string', + pii: { + isPii: 'maybe', + }, + 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: 'maybe', + }, + 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: 'maybe', + }, + 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: 'maybe', + }, + 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: 'maybe', + }, + 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: 'maybe', + }, + 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: 'maybe', + }, + 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_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; + [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__event_id.json b/model/attributes/gcp/gcp__function__context__event_id.json new file mode 100644 index 00000000..7545c459 --- /dev/null +++ b/model/attributes/gcp/gcp__function__context__event_id.json @@ -0,0 +1,17 @@ +{ + "key": "gcp.function.context.event_id", + "brief": "The event ID from the legacy GCP Cloud Function context (1st gen)", + "type": "string", + "pii": { + "key": "maybe" + }, + "is_in_otel": false, + "example": "1234567890", + "changelog": [ + { + "version": "next", + "prs": [372], + "description": "Added gcp.function.context.event_id attribute" + } + ] +} diff --git a/model/attributes/gcp/gcp__function__context__event_type.json b/model/attributes/gcp/gcp__function__context__event_type.json new file mode 100644 index 00000000..0f3bc8d9 --- /dev/null +++ b/model/attributes/gcp/gcp__function__context__event_type.json @@ -0,0 +1,17 @@ +{ + "key": "gcp.function.context.event_type", + "brief": "The type of the GCP Cloud Function event", + "type": "string", + "pii": { + "key": "maybe" + }, + "is_in_otel": false, + "example": "google.pubsub.topic.publish", + "changelog": [ + { + "version": "next", + "prs": [372], + "description": "Added gcp.function.context.event_type 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..596ef531 --- /dev/null +++ b/model/attributes/gcp/gcp__function__context__id.json @@ -0,0 +1,17 @@ +{ + "key": "gcp.function.context.id", + "brief": "The unique event ID from the GCP CloudEvents context (2nd gen Cloud Functions)", + "type": "string", + "pii": { + "key": "maybe" + }, + "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..ee7e8e74 --- /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": "maybe" + }, + "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..91bc5162 --- /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": "maybe" + }, + "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..775c03f0 --- /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": "maybe" + }, + "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..a5339008 --- /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": "maybe" + }, + "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..0e21000e --- /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": "maybe" + }, + "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..5673e8cd --- /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": "maybe" + }, + "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..e8042adb 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__event_id.json + GCP_FUNCTION_CONTEXT_EVENT_ID: Literal["gcp.function.context.event_id"] = ( + "gcp.function.context.event_id" + ) + """The event ID from the legacy GCP Cloud Function context (1st gen) + + Type: str + Contains PII: maybe + Defined in OTEL: No + Example: "1234567890" + """ + + # 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 + + Type: str + Contains PII: maybe + 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 event ID from the GCP CloudEvents context (2nd gen Cloud Functions) + + Type: str + Contains PII: maybe + 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: maybe + 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: maybe + 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: maybe + 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: maybe + 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: maybe + 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: maybe + 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.event_id": AttributeMetadata( + brief="The event ID from the legacy GCP Cloud Function context (1st gen)", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.MAYBE), + is_in_otel=False, + example="1234567890", + changelog=[ + ChangelogEntry( + version="next", + prs=[372], + description="Added gcp.function.context.event_id attribute", + ), + ], + ), + "gcp.function.context.event_type": AttributeMetadata( + brief="The type of the GCP Cloud Function event", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.MAYBE), + is_in_otel=False, + example="google.pubsub.topic.publish", + changelog=[ + ChangelogEntry( + version="next", + prs=[372], + description="Added gcp.function.context.event_type attribute", + ), + ], + ), + "gcp.function.context.id": AttributeMetadata( + brief="The unique event ID from the GCP CloudEvents context (2nd gen Cloud Functions)", + type=AttributeType.STRING, + pii=PiiInfo(isPii=IsPii.MAYBE), + 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.MAYBE), + 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.MAYBE), + 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.MAYBE), + 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.MAYBE), + 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.MAYBE), + 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.MAYBE), + 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.event_id": str, + "gcp.function.context.event_type": 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,