Skip to content

Commit

Permalink
chore(instr-undici): updates/tweaks for new undici instrumentation (#…
Browse files Browse the repository at this point in the history
…2085)

- set min supported undici to v5.12.0
- 'codecov' npm script was copypasta from core repo
- update to same test-all-versions ver as other pkgs in the workspace
- update undici to latest (it is a security update)
- add label-prs workflow support pkg:instrumentation-undici
- reduce number of versions tested with TAV
  • Loading branch information
trentm committed Apr 10, 2024
1 parent 66d9cea commit 1af4901
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 312 deletions.
4 changes: 4 additions & 0 deletions .github/component-label-map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ pkg:instrumentation-tedious:
- any-glob-to-any-file:
- plugins/node/instrumentation-tedious/**
- packages/opentelemetry-test-utils/**
pkg:instrumentation-undici:
- changed-files:
- any-glob-to-any-file:
- plugins/node/instrumentation-undici/**
pkg:instrumentation-user-interaction:
- changed-files:
- any-glob-to-any-file:
Expand Down
282 changes: 12 additions & 270 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions plugins/node/instrumentation-undici/.tav.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
undici:
jobs:
- versions: ">=5 <6"
- versions:
include: ">=5.12.0 <6"
mode: max-7
node: '>=14'
commands: npm run test
- versions: ">=6 <7"
- versions:
include: ">=6 <7"
mode: max-7
node: '>=18'
commands: npm run test
4 changes: 4 additions & 0 deletions plugins/node/instrumentation-undici/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ If you're looking the instrumentation for browser's `fetch` API it is located at
npm install --save @opentelemetry/instrumentation-undici
```

## Supported Versions

- `undici@>=5.12.0`

## Usage

OpenTelemetry Undici/fetch Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.
Expand Down
Loading

0 comments on commit 1af4901

Please sign in to comment.