Skip to content

feat(attributes): Add gcp.function.context.* span attributes#371

Merged
chargome merged 5 commits into
mainfrom
chargome/feat/add-gcp-function-span-attributes
May 18, 2026
Merged

feat(attributes): Add gcp.function.context.* span attributes#371
chargome merged 5 commits into
mainfrom
chargome/feat/add-gcp-function-span-attributes

Conversation

@chargome
Copy link
Copy Markdown
Member

Summary

  • Add 9 GCP Cloud Function context attributes: type, source, id, specversion, time, eventId, timestamp, eventType, resource
  • Note: eventId, eventType, and timestamp use camelCase to match the GCP API field names
  • Needed by the JS SDK (JS-2221) for span streaming

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) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Attributes

  • Add gcp.function.context.* span attributes by chargome in #371
  • Add sentry.dsc.project_id as an attribute by constantinius in #358
  • Add trpc.* attributes by chargome in #370
  • Add angular.version attribute by chargome in #367
  • Add aws.lambda.* and aws.cloudwatch.logs.* attributes by chargome in #369
  • Add react.version attribute by chargome in #368
  • Add state.type attribute by chargome in #365
  • Add cloud.* span attributes by chargome in #364
  • Add calculated performance scores by loewenheim in #355
  • Add rpc.response.status_code attribute by alexander-alderman-webb in #352
  • Add rpc.method attribute by alexander-alderman-webb in #351
  • Add app vitals start attributes by buenaflor in #353
  • Add process.runtime.engine.* attributes by chargome in #347

Bug Fixes 🐛

Attributes

  • Increase some PII values by loewenheim in #373
  • Change several deprecation statuses to normalize to align with ingestion paths by constantinius in #350

Other

  • (create) Replace angle brackets in file names by loewenheim in #356

Internal Changes 🔧

Deps

  • Bump astro from 6.1.6 to 6.1.10 by dependabot in #374
  • Bump svelte from 5.53.5 to 5.55.7 by dependabot in #381

Other

  • (gh) Remove myself from CODEOWNERS by lcian in #354
  • Bump vulnerable pytest by alexander-alderman-webb in #360
  • Bump vulnerable js packages by chargome in #359

🤖 This preview updates automatically when you update the PR.

@chargome chargome self-assigned this May 12, 2026
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) <noreply@anthropic.com>
@chargome chargome marked this pull request as ready for review May 13, 2026 08:46
@chargome chargome requested review from a team, Lms24, cleptric, mjq and nsdeschenes as code owners May 13, 2026 08:46
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment thread model/attributes/gcp/gcp__function__context__id.json
Distinguish CloudEvents (2nd gen) id from legacy (1st gen) event_id
to avoid ambiguity for downstream SDK developers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The naming and attributes themselves LGTM. Though seems like we still need to fix all PR id references in the changelog sections.

Comment thread model/attributes/gcp/gcp__function__context__event_id.json Outdated
Comment thread model/attributes/gcp/gcp__function__context__id.json Outdated
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment thread model/attributes/gcp/gcp__function__context__type.json
@chargome chargome merged commit 79b5423 into main May 18, 2026
13 checks passed
@chargome chargome deleted the chargome/feat/add-gcp-function-span-attributes branch May 18, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants