Skip to content

Commit ca3a6b1

Browse files
committed
Merge branch 'main' into instrumentation-sequelize
2 parents d3335dd + 12d3aa6 commit ca3a6b1

File tree

568 files changed

+33305
-32934
lines changed

Some content is hidden

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

568 files changed

+33305
-32934
lines changed

.github/component-label-map.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ pkg:instrumentation-ioredis:
131131
- plugins/node/opentelemetry-instrumentation-ioredis/**
132132
- packages/opentelemetry-test-utils/**
133133
- packages/opentelemetry-redis-common/**
134+
pkg:instrumentation-kafkajs:
135+
- changed-files:
136+
- any-glob-to-any-file:
137+
- plugins/node/instrumentation-kafkajs/**
138+
- packages/opentelemetry-test-utils/**
134139
pkg:instrumentation-knex:
135140
- changed-files:
136141
- any-glob-to-any-file:
@@ -183,6 +188,11 @@ pkg:instrumentation-net:
183188
- changed-files:
184189
- any-glob-to-any-file:
185190
- plugins/node/opentelemetry-instrumentation-net/**
191+
pkg:instrumentation-oracledb:
192+
- changed-files:
193+
- any-glob-to-any-file:
194+
- plugins/node/opentelemetry-instrumentation-oracledb/**
195+
- packages/opentelemetry-test-utils/**
186196
pkg:instrumentation-pg:
187197
- changed-files:
188198
- any-glob-to-any-file:

.github/component_owners.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ components:
1818
- kirrg001
1919
incubator/opentelemetry-sampler-aws-xray:
2020
- jj22ee
21+
- yiyuan-he
2122
metapackages/auto-configuration-propagators:
2223
- pichlermarc
2324
metapackages/auto-instrumentations-node:
@@ -30,6 +31,8 @@ components:
3031
- pichlermarc
3132
- legendecas
3233
- blumamir
34+
packages/baggage-log-record-processor:
35+
- maryliag
3336
packages/baggage-span-processor:
3437
- mikegoldsmith
3538
- jamiedanielson
@@ -69,6 +72,11 @@ components:
6972
- mottibec
7073
plugins/node/instrumentation-tedious: []
7174
# Unmaintained
75+
plugins/node/instrumentation-typeorm:
76+
- seemk
77+
- weyert
78+
- t2t2
79+
- mhennoch
7280
plugins/node/opentelemetry-instrumentation-aws-lambda:
7381
- jj22ee
7482
plugins/node/opentelemetry-instrumentation-aws-sdk:
@@ -115,6 +123,9 @@ components:
115123
# Unmaintained
116124
plugins/node/opentelemetry-instrumentation-net:
117125
- seemk
126+
plugins/node/opentelemetry-instrumentation-oracledb:
127+
- sudarshan12s
128+
- sharadraju
118129
plugins/node/instrumentation-runtime-node:
119130
- d4nyll
120131
plugins/node/opentelemetry-instrumentation-pg:
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: OSSF Scorecard
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
schedule:
8+
- cron: "31 18 * * 4" # once a week
9+
workflow_dispatch:
10+
11+
permissions: read-all
12+
13+
jobs:
14+
analysis:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
# Needed for Code scanning upload
18+
security-events: write
19+
# Needed for GitHub OIDC token if publish_results is true
20+
id-token: write
21+
steps:
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
with:
24+
persist-credentials: false
25+
26+
- uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
27+
with:
28+
results_file: results.sarif
29+
results_format: sarif
30+
publish_results: true
31+
32+
# Upload the results as artifacts (optional). Commenting out will disable
33+
# uploads of run results in SARIF format to the repository Actions tab.
34+
# https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
35+
- name: "Upload artifact"
36+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
37+
with:
38+
name: SARIF file
39+
path: results.sarif
40+
retention-days: 5
41+
42+
# Upload the results to GitHub's code scanning dashboard (optional).
43+
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
44+
- name: "Upload to code-scanning"
45+
uses: github/codeql-action/upload-sarif@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
46+
with:
47+
sarif_file: results.sarif

.github/workflows/peer-api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
run: npm ci
2020

2121
- name: Check API dependency semantics
22-
run: npx lerna exec "node \$LERNA_ROOT_PATH/scripts/peer-api-check.js"
22+
run: node ./scripts/peer-api-check.js

.github/workflows/release-please-validate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v4
1717

18-
- name: Install lerna
19-
run: npm install -g [email protected]
18+
- name: Install glob
19+
run: npm install glob
2020

2121
- name: Ensure Release Please Config and Manifest are in sync with the repository
2222
run: node scripts/check-release-please.mjs

.github/workflows/release-please.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ jobs:
7474
7575
# Release Please has already incremented versions and published tags, so we just
7676
# need to publish all unpublished versions to npm here
77-
# See: https://github.com/lerna/lerna/tree/main/commands/publish#bump-from-package
77+
# See: https://github.com/lerna/lerna/tree/main/libs/commands/publish#bump-from-package
7878
- name: Publish to npm
7979
# only publish if a release has been created
8080
if: ${{ steps.release.outputs.releases_created }}
8181
env:
8282
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
8383
NPM_CONFIG_PROVENANCE: true
84-
run: npx lerna publish from-package --no-push --no-private --no-git-tag-version --no-verify-access --yes
84+
run: npx lerna publish from-package --no-push --no-private --no-git-tag-version --yes

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

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jobs:
3737
uses: actions/upload-artifact@v4
3838
with:
3939
name: tav-build-cache-${{ github.run_number }}
40-
path: node_modules/.cache/nx
40+
path: .nx
41+
include-hidden-files: true
42+
if-no-files-found: error
4143
retention-days: 1
4244

4345
tav:
@@ -46,7 +48,7 @@ jobs:
4648
strategy:
4749
fail-fast: false
4850
matrix:
49-
node: ["14", "16", "18", "20", "22"]
51+
node: ["18", "20", "22"]
5052
runs-on: ubuntu-latest
5153
services:
5254
mongo:
@@ -80,6 +82,19 @@ jobs:
8082
--health-interval 10s
8183
--health-timeout 5s
8284
--health-retries 5
85+
oracledb:
86+
image: gvenzl/oracle-free:slim
87+
env:
88+
APP_USER: otel
89+
APP_USER_PASSWORD: secret
90+
ORACLE_PASSWORD: oracle
91+
ports:
92+
- 1521:1521
93+
options: >-
94+
--health-cmd "sqlplus system/oracle@//localhost/FREEPDB1"
95+
--health-interval 10s
96+
--health-timeout 5s
97+
--health-retries 5
8398
postgres:
8499
image: postgres:16-alpine
85100
env:
@@ -122,6 +137,12 @@ jobs:
122137
MYSQL_USER: otel
123138
OPENTELEMETRY_REDIS_HOST: localhost
124139
OPENTELEMETRY_REDIS_PORT: 6379
140+
ORACLE_HOSTNAME: localhost
141+
ORACLE_PORT: 1521
142+
ORACLE_CONNECTSTRING: localhost:1521/freepdb1
143+
ORACLE_USER: otel
144+
ORACLE_PASSWORD: secret
145+
ORACLE_SERVICENAME: FREEPDB1
125146
POSTGRES_DB: otel_pg_database
126147
POSTGRES_HOST: localhost
127148
POSTGRES_PORT: 5432
@@ -130,6 +151,7 @@ jobs:
130151
RUN_MONGODB_TESTS: 1
131152
RUN_MSSQL_TESTS: 1
132153
RUN_MYSQL_TESTS: 1
154+
RUN_ORACLEDB_TESTS: 1
133155
RUN_POSTGRES_TESTS: 1
134156
RUN_REDIS_TESTS: 1
135157
NPM_CONFIG_UNSAFE_PERM: true
@@ -141,18 +163,13 @@ jobs:
141163
- uses: actions/setup-node@v4
142164
with:
143165
node-version: ${{ matrix.node }}
144-
- name: Set MySQL variables
145-
run: mysql --user=root --password=${MYSQL_ROOT_PASSWORD} --host=${MYSQL_HOST} --port=${MYSQL_PORT} -e "SET GLOBAL log_output='TABLE'; SET GLOBAL general_log = 1;" mysql
146-
- name: Update npm to a version that supports workspaces (v7 or later)
147-
if: ${{ matrix.node < 16 }}
148-
run: npm install -g npm@9 # npm@9 supports node >=14.17.0
149166
- name: Install
150167
run: npm ci
151168
- name: Download Build Artifacts
152169
uses: actions/download-artifact@v4
153170
with:
154171
name: tav-build-cache-${{ github.run_number }}
155-
path: node_modules/.cache/nx
172+
path: .nx
156173
- name: Build
157174
run: npm run compile
158175
- name: Run test-all-versions

.github/workflows/unit-test.yml

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,26 @@ jobs:
2525
run: npm ci
2626
- name: Build
2727
run: npm run compile
28-
- name: Upload build artifact
28+
- name: Upload Build Artifacts
2929
uses: actions/upload-artifact@v4
3030
with:
3131
name: tests-build-cache-${{ github.run_number }}
32-
path: node_modules/.cache/nx
32+
path: .nx
33+
include-hidden-files: true
34+
if-no-files-found: error
3335
retention-days: 1
3436

3537
unit-test:
3638
needs: build-and-cache
3739
strategy:
3840
fail-fast: false
3941
matrix:
40-
node: ["14", "16", "18", "20", "22"]
42+
node:
43+
- "18.19.0"
44+
- "18"
45+
- "20.6.0"
46+
- "20"
47+
- "22"
4148
include:
4249
- node: 18
4350
code-coverage: true
@@ -78,6 +85,19 @@ jobs:
7885
--health-interval 10s
7986
--health-timeout 5s
8087
--health-retries 5
88+
oracledb:
89+
image: gvenzl/oracle-free:slim
90+
env:
91+
APP_USER: otel
92+
APP_USER_PASSWORD: secret
93+
ORACLE_PASSWORD: oracle
94+
ports:
95+
- 1521:1521
96+
options: >-
97+
--health-cmd "sqlplus system/oracle@//localhost/FREEPDB1"
98+
--health-interval 10s
99+
--health-timeout 5s
100+
--health-retries 5
81101
postgres:
82102
image: postgres:16-alpine
83103
env:
@@ -117,6 +137,7 @@ jobs:
117137
RUN_MONGODB_TESTS: 1
118138
RUN_MYSQL_TESTS: 1
119139
RUN_MSSQL_TESTS: 1
140+
RUN_ORACLEDB_TESTS: 1
120141
RUN_POSTGRES_TESTS: 1
121142
RUN_REDIS_TESTS: 1
122143
RUN_RABBIT_TESTS: 1
@@ -135,6 +156,12 @@ jobs:
135156
OPENTELEMETRY_MEMCACHED_PORT: 11211
136157
OPENTELEMETRY_REDIS_HOST: localhost
137158
OPENTELEMETRY_REDIS_PORT: 6379
159+
ORACLE_HOSTNAME: localhost
160+
ORACLE_PORT: 1521
161+
ORACLE_CONNECTSTRING: localhost:1521/freepdb1
162+
ORACLE_USER: otel
163+
ORACLE_PASSWORD: secret
164+
ORACLE_SERVICENAME: FREEPDB1
138165
POSTGRES_DB: otel_pg_database
139166
POSTGRES_HOST: localhost
140167
POSTGRES_PORT: 5432
@@ -149,18 +176,13 @@ jobs:
149176
- uses: actions/setup-node@v4
150177
with:
151178
node-version: ${{ matrix.node }}
152-
- name: Set MySQL variables
153-
run: mysql --user=root --password=${MYSQL_ROOT_PASSWORD} --host=${MYSQL_HOST} --port=${MYSQL_PORT} -e "SET GLOBAL log_output='TABLE'; SET GLOBAL general_log = 1;" mysql
154-
- name: Update npm to a version that supports workspaces (v7 or later)
155-
if: ${{ matrix.node < 16 }}
156-
run: npm install -g npm@9 # npm@9 supports node >=14.17.0
157179
- name: Install
158180
run: npm ci
159181
- name: Download Build Artifacts
160182
uses: actions/download-artifact@v4
161183
with:
162184
name: tests-build-cache-${{ github.run_number }}
163-
path: node_modules/.cache/nx
185+
path: .nx
164186
- name: Build
165187
run: npm run compile
166188
- name: Unit tests (Full)
@@ -201,7 +223,7 @@ jobs:
201223
uses: actions/download-artifact@v4
202224
with:
203225
name: tests-build-cache-${{ github.run_number }}
204-
path: node_modules/.cache/nx
226+
path: .nx
205227
- name: Build
206228
run: npm run compile
207229
- name: Unit tests

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ docs
6969

7070
#lerna
7171
.changelog
72-
package.json.lerna_backup
72+
.nx
7373

7474
# OS generated files
7575
.DS_Store

0 commit comments

Comments
 (0)