Skip to content

fix(otel): add VCS resource attributes to v1#194

Merged
kakadiadarpan merged 8 commits into
v1.xfrom
darpan/vcs-resource-attrs-v1
Apr 8, 2026
Merged

fix(otel): add VCS resource attributes to v1#194
kakadiadarpan merged 8 commits into
v1.xfrom
darpan/vcs-resource-attrs-v1

Conversation

@kakadiadarpan
Copy link
Copy Markdown
Collaborator

Problem

  • Default resource attributes were missing VCS metadata described in the OpenTelemetry semantic conventions here

Solution

  • add the missing VCS resource attributes from the OpenTelemetry semantic conventions
  • keep existing resource attributes for compatibility
  • move attribute helper utilities to src/util/attributes.ts
  • keep semantic attribute constants in src/semantic-resource-attributes.ts
  • mark DEPLOYMENT_ENVIRONMENT & VCS_REPOSITORY_REF_VERSION as deprecated
  • add tests

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 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 Apr 7, 2026 2:00pm

@kakadiadarpan kakadiadarpan changed the base branch from main to v1.x April 7, 2026 13:14
@kakadiadarpan kakadiadarpan merged commit 5eef3a6 into v1.x Apr 8, 2026
9 checks passed
@kakadiadarpan kakadiadarpan deleted the darpan/vcs-resource-attrs-v1 branch April 8, 2026 09:24
@github-actions github-actions Bot mentioned this pull request Apr 8, 2026
kakadiadarpan added a commit that referenced this pull request Apr 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 v1.x, this PR will
be updated.


# Releases
## @vercel/otel@1.14.1

### Patch Changes

- [#194](#194)
[`5eef3a6`](5eef3a6)
Thanks [@kakadiadarpan](https://github.com/kakadiadarpan)! - Add
standard OpenTelemetry resource attributes for VCS.

---------

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