Skip to content

Commit 2b353dd

Browse files
fix: add project id to attributes (#171)
* add project id * changeset * update actions to run on v1 as well * update attributes * Revert "update attributes" This reverts commit 5806865.
1 parent 024bed7 commit 2b353dd

6 files changed

Lines changed: 14 additions & 8 deletions

File tree

.changeset/five-meals-jam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@vercel/otel": patch
3+
---
4+
5+
add project id to resource attributes

.github/workflows/e2e-prod.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: e2e Tests (prod)
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, v1.x]
66
pull_request:
7-
branches: [main]
7+
branches: [main, v1.x]
88

99
jobs:
1010
test:

.github/workflows/eslint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Eslint
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, v1.x]
66
pull_request:
7-
branches: [main]
7+
branches: [main, v1.x]
88

99
jobs:
1010
test:

.github/workflows/type-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Type Check
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, v1.x]
66
pull_request:
7-
branches: [main]
7+
branches: [main, v1.x]
88

99
jobs:
1010
test:

.github/workflows/unit-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Unit Tests
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, v1.x]
66
pull_request:
7-
branches: [main]
7+
branches: [main, v1.x]
88

99
jobs:
1010
test:

packages/otel/src/sdk.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ export class Sdk {
135135
"vercel.deployment_id": process.env.VERCEL_DEPLOYMENT_ID || undefined,
136136
[SemanticResourceAttributes.SERVICE_VERSION]:
137137
process.env.VERCEL_DEPLOYMENT_ID,
138+
"vercel.project_id": process.env.VERCEL_PROJECT_ID || undefined,
138139

139140
...configuration.attributes,
140141
})

0 commit comments

Comments
 (0)