Skip to content

Commit

Permalink
test: test multiple versions of bunyan (open-telemetry#792)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Dyla <[email protected]>
  • Loading branch information
rauno56 and dyladan authored Dec 23, 2021
1 parent 2564a8b commit 1e4f51b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
4 changes: 4 additions & 0 deletions plugins/node/opentelemetry-instrumentation-bunyan/.tav.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bunyan:
# Testing ^1.8.12 covers at least 95% of the downloaded versions
versions: "^1.8.12"
commands: npm run test
16 changes: 10 additions & 6 deletions plugins/node/opentelemetry-instrumentation-bunyan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Compatible with OpenTelemetry JS API and SDK `1.0+`.
npm install --save @opentelemetry/instrumentation-bunyan
```

### Supported Versions

- `^1.0.0`

## Usage

```js
Expand Down Expand Up @@ -46,17 +50,17 @@ bunyan.createLogger({ name: 'example' }).info('foo');

For the current active span, the following will be added to the bunyan record:

* `trace_id`
* `span_id`
* `trace_flags`
- `trace_id`
- `span_id`
- `trace_flags`

When no span context is active or the span context is invalid, injection is skipped.

## Useful links

* For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
* For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
* For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]

## License

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"prepare": "npm run compile",
"tdd": "npm run test -- --watch-extensions ts --watch",
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'",
"test-all-versions": "tav",
"version:update": "node ../../../scripts/version-update.js"
},
"keywords": [
Expand Down Expand Up @@ -61,11 +62,12 @@
"nyc": "15.1.0",
"rimraf": "3.0.2",
"sinon": "11.1.2",
"test-all-versions": "^5.0.1",
"ts-mocha": "8.0.0",
"typescript": "4.3.5"
},
"dependencies": {
"@opentelemetry/instrumentation": "^0.27.0",
"@types/bunyan": "1.8.7"
}
}
}

0 comments on commit 1e4f51b

Please sign in to comment.