Skip to content

feat(otel): add semantic cloud resource attributes#198

Merged
kakadiadarpan merged 1 commit into
mainfrom
feat/otel-semconv-resource-103
Jun 8, 2026
Merged

feat(otel): add semantic cloud resource attributes#198
kakadiadarpan merged 1 commit into
mainfrom
feat/otel-semconv-resource-103

Conversation

@swarnava
Copy link
Copy Markdown
Member

@swarnava swarnava commented Jun 7, 2026

Adds cloud.provider to default @vercel/otel resource attributes. This improves interoperability with OpenTelemetry semantic conventions and observability UIs.

Refs: #103

@swarnava swarnava requested a review from kakadiadarpan June 7, 2026 07:24
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jun 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
otel-site Ready Ready Preview, Comment, Open in v0 Jun 8, 2026 8:31am

Comment thread .changeset/ten-pumpkins-fix.md Outdated
Comment thread packages/otel/src/util/attributes.ts Outdated
Comment thread .changeset/ten-pumpkins-fix.md Outdated
Comment thread packages/otel/src/util/attributes.ts Outdated
Adds cloud.provider as a default resource attribute and keeps cloud.region for deployment locality while preserving legacy env and vercel.* compatibility attributes. Removes the incorrect cloud.availability_zone default mapping from VERCEL_REGION and updates docs and tests accordingly.
@kakadiadarpan kakadiadarpan merged commit 9b6512e into main Jun 8, 2026
9 checks passed
@kakadiadarpan kakadiadarpan deleted the feat/otel-semconv-resource-103 branch June 8, 2026 08:33
@github-actions github-actions Bot mentioned this pull request Jun 8, 2026
kakadiadarpan added a commit that referenced this pull request Jun 8, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/otel@2.1.3

### Patch Changes

- [#198](#198)
[`9b6512e`](9b6512e)
Thanks [@swarnava](https://github.com/swarnava)! - Add OpenTelemetry
semantic convention resource attributes for Vercel defaults.
`cloud.provider` is now set to `vercel`, and `cloud.region` continues to
be emitted from `VERCEL_REGION`.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Darpan Kakadia <kakadiadarpan@gmail.com>
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.

2 participants