Skip to content

Commit c422d21

Browse files
authored
Merge branch 'main' into feature/add-io-redis-cluster-instrumentation
2 parents c874b89 + 537cb67 commit c422d21

File tree

426 files changed

+12712
-5010
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

426 files changed

+12712
-5010
lines changed

.github/component-label-map.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ pkg:instrumentation-oracledb:
193193
- any-glob-to-any-file:
194194
- packages/instrumentation-oracledb/**
195195
- packages/contrib-test-utils/**
196+
pkg:instrumentation-openai:
197+
- changed-files:
198+
- any-glob-to-any-file:
199+
- packages/instrumentation-openai/**
200+
- packages/contrib-test-utils/**
196201
pkg:instrumentation-pg:
197202
- changed-files:
198203
- any-glob-to-any-file:

.github/component_owners.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ components:
1111
- abhee11
1212
packages/resource-detector-gcp:
1313
- aabmass
14-
- punya
14+
- psx95
15+
- DylanRussell
16+
- dashpole
1517
packages/resource-detector-github: []
1618
# Unmaintained
1719
packages/resource-detector-instana:
1820
- kirrg001
19-
incubator/opentelemetry-sampler-aws-xray:
21+
packages/sampler-aws-xray:
2022
- jj22ee
2123
- yiyuan-he
2224
packages/auto-configuration-propagators:

.github/workflows/label-prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v5
17-
- uses: actions/labeler@v5
17+
- uses: actions/labeler@v6
1818
with:
1919
configuration-path: '.github/component-label-map.yml'

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v5
17-
- uses: actions/setup-node@v4
17+
- uses: actions/setup-node@v5
1818
with:
1919
node-version: 18
2020
cache: 'npm'

.github/workflows/release-please.yml

Lines changed: 53 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,19 @@ permissions:
88

99
name: Run Release Please
1010
jobs:
11+
# creates the release PR, and publishes releases
1112
release-please:
13+
outputs:
14+
release_created: ${{ steps.release.outputs.release_created }}
1215
runs-on: ubuntu-latest
13-
permissions:
14-
contents: write # required for pushing changes
15-
id-token: write
1616
steps:
17-
# The logic below handles the npm publication:
1817
- name: Checkout Repository
1918
uses: actions/checkout@v5
2019
with:
2120
fetch-depth: 0
2221

23-
# If you update this version make sure to keep in sync:
24-
# - `build-and-cache` job of unit-test workflow
25-
# - `build-and-cache` job of test-all-versions workflow
2622
- name: Setup Node
27-
uses: actions/setup-node@v4
23+
uses: actions/setup-node@v5
2824
with:
2925
node-version: 18
3026
registry-url: 'https://registry.npmjs.org'
@@ -33,10 +29,16 @@ jobs:
3329
run: |
3430
npm ci
3531
32+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
33+
id: otelbot-token
34+
with:
35+
app-id: ${{ vars.OTELBOT_JS_CONTRIB_APP_ID }}
36+
private-key: ${{ secrets.OTELBOT_JS_CONTRIB_PRIVATE_KEY }}
37+
3638
- uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3
3739
id: release
3840
with:
39-
token: ${{secrets.RELEASE_PR_TOKEN}}
41+
token: ${{ steps.otelbot-token.outputs.token }}
4042
target-branch: main
4143

4244
# get release PR as we're currently on main
@@ -47,42 +49,69 @@ jobs:
4749
with:
4850
ref: release-please--branches--main
4951
# use a token so that workflows on the PR run when we push later
50-
token: ${{ secrets.RELEASE_PR_TOKEN }}
52+
token: ${{ steps.otelbot-token.outputs.token }}
5153

52-
# release-please does not do this on its own, so we do it here instead
54+
# previous commiter does not have CLA signed, and the commit is missing updates to package-lock.json,
55+
# so we re-write that commit here with the proper changes
5356
- name: Update package-lock.json in PR
5457
# only update if a PR has been created
5558
if: ${{ steps.release.outputs.pr }}
5659
run: |
5760
npm install --ignore-scripts --package-lock-only
5861
git add package-lock.json
59-
git config user.name opentelemetrybot
60-
git config user.email 107717825+opentelemetrybot@users.noreply.github.com
61-
git commit -m "chore: sync package-lock.json"
62-
git push
62+
git config user.name otelbot
63+
git config user.email 197425009+otelbot@users.noreply.github.com
64+
git commit --amend --reset-author --no-edit
65+
git push --force
6366
64-
# get main again
67+
install-and-compile:
68+
needs: release-please
69+
# only if a release has been created
70+
if: ${{ needs.release-please.outputs.release_created }}
71+
runs-on: ubuntu-latest
72+
steps:
6573
- name: Checkout Repository
66-
# only checkout if a release has been created
67-
if: ${{ steps.release.outputs.releases_created }}
6874
uses: actions/checkout@v5
6975
with:
7076
fetch-depth: 0
71-
7277
- name: Rebuild Packages
73-
# only rebuild if a release has been created
74-
if: ${{ steps.release.outputs.releases_created }}
7578
run: |
7679
npm ci
7780
npm run compile
81+
- name: Upload contents for publish
82+
uses: actions/upload-artifact@v4
83+
with:
84+
name: publish-cache-${{ github.run_number }}
85+
path: .
86+
include-hidden-files: true
87+
if-no-files-found: error
88+
retention-days: 10
7889

90+
npm-publish:
91+
needs:
92+
- release-please
93+
- install-and-compile
94+
# only if a release has been created
95+
if: ${{ needs.release-please.outputs.release_created }}
96+
runs-on: ubuntu-latest
97+
permissions:
98+
contents: read
99+
id-token: write # to generate npm provenance statements
100+
environment: npm-publish-environment
101+
steps:
102+
- name: Setup Node
103+
uses: actions/setup-node@v5
104+
with:
105+
node-version: 24
106+
registry-url: 'https://registry.npmjs.org'
107+
- name: Download contents for publish
108+
uses: actions/download-artifact@v5
109+
with:
110+
name: publish-cache-${{ github.run_number }}
79111
# Release Please has already incremented versions and published tags, so we just
80112
# need to publish all unpublished versions to npm here
81113
# See: https://github.com/lerna/lerna/tree/main/libs/commands/publish#bump-from-package
82114
- name: Publish to npm
83-
# only publish if a release has been created
84-
if: ${{ steps.release.outputs.releases_created }}
85115
env:
86-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
87116
NPM_CONFIG_PROVENANCE: true
88117
run: npx lerna publish from-package --no-push --no-private --no-git-tag-version --yes
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Survey on Merged PR by Non-Member
2+
3+
on:
4+
pull_request_target:
5+
types: [closed]
6+
7+
permissions:
8+
contents: read
9+
10+
env:
11+
PR_NUM: ${{ github.event.pull_request.number }}
12+
SURVEY_URL: https://docs.google.com/forms/d/e/1FAIpQLSf2FfCsW-DimeWzdQgfl0KDzT2UEAqu69_f7F2BVPSxVae1cQ/viewform?entry.1540511742=${{ github.repository }}
13+
14+
jobs:
15+
comment-on-pr:
16+
name: Add survey to PR if author is not a member
17+
runs-on: ubuntu-latest
18+
if: github.event.pull_request.merged == true
19+
steps:
20+
- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
21+
id: otelbot-token
22+
with:
23+
app-id: ${{ vars.OTELBOT_APP_ID }}
24+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
25+
26+
- name: Add survey comment if author is not a member or bot
27+
run: |
28+
USERNAME="${{ github.event.pull_request.user.login }}"
29+
USER_TYPE="${{ github.event.pull_request.user.type }}"
30+
ORG="${{ github.repository_owner }}"
31+
32+
# Skip if user is a bot
33+
if [[ "$USER_TYPE" == "Bot" ]]; then
34+
echo "Skipping survey for bot user: $USERNAME"
35+
exit 0
36+
fi
37+
38+
# Skip if user is an org member
39+
if gh api "orgs/$ORG/members/$USERNAME" --silent; then
40+
echo "Skipping survey for org member: $USERNAME"
41+
exit 0
42+
fi
43+
44+
# Add survey comment for external contributor
45+
echo "Adding survey comment for external contributor: $USERNAME"
46+
gh pr comment ${PR_NUM} --repo ${{ github.repository }} --body "Thank you for your contribution @${USERNAME}! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this [survey](${SURVEY_URL})."
47+
env:
48+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}

.github/workflows/test-all-versions.pr.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/test-all-versions.push.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/test-all-versions.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
fetch-depth: 0
3131
# Use the same Node.js version used for `release-please` workflow.
32-
- uses: actions/setup-node@v4
32+
- uses: actions/setup-node@v5
3333
with:
3434
node-version: 18
3535
- name: Install
@@ -152,6 +152,7 @@ jobs:
152152
POSTGRES_USER: postgres
153153
POSTGRES_PASSWORD: postgres
154154
RUN_MONGODB_TESTS: 1
155+
RUN_MONGOOSE_TESTS: 1
155156
RUN_MSSQL_TESTS: 1
156157
RUN_MYSQL_TESTS: 1
157158
RUN_ORACLEDB_TESTS: 1
@@ -163,7 +164,7 @@ jobs:
163164
uses: actions/checkout@v5
164165
with:
165166
fetch-depth: 0
166-
- uses: actions/setup-node@v4
167+
- uses: actions/setup-node@v5
167168
with:
168169
node-version: ${{ matrix.node }}
169170
- name: Install

0 commit comments

Comments
 (0)