Skip to content

Commit

Permalink
test: test multiple versions of graphql (open-telemetry#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
rauno56 authored Dec 13, 2021
1 parent 27e37e3 commit 6766471
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions plugins/node/opentelemetry-instrumentation-graphql/.tav.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
graphql:
# Taking a sample from the most downloaded versions in the range "14 || 15"
versions: "^15.8.0 || 15.7.2 || 15.6.1 || 15.6.0 || 15.5.3 || 15.5.1 || 15.5.0 || 15.4.0 || 15.3.0 || 14.6.0 || 14.5.8 || 14.5.0 || 14.0.0"
commands: npm run test
6 changes: 4 additions & 2 deletions plugins/node/opentelemetry-instrumentation-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ This module provides *automated instrumentation and tracing* for GraphQL in Node

*Note*: graphql plugin instruments graphql directly. it should work with any package that wraps the graphql package (e.g apollo).

Minimum required graphql version is `v14`

Compatible with OpenTelemetry JS API and SDK `1.0+`.

## Installation
Expand All @@ -19,6 +17,10 @@ Compatible with OpenTelemetry JS API and SDK `1.0+`.
npm install @opentelemetry/instrumentation-graphql
```

### Supported Versions

`>=14 <16`

## Usage

```js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"prewatch": "npm run precompile",
"prepare": "npm run compile",
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'",
"test-all-versions": "tav",
"tdd": "npm run test -- --watch-extensions ts --watch",
"version:update": "node ../../../scripts/version-update.js",
"watch": "tsc -w"
Expand Down Expand Up @@ -57,11 +58,12 @@
"mocha": "7.2.0",
"nyc": "15.1.0",
"rimraf": "3.0.2",
"test-all-versions": "^5.0.1",
"ts-mocha": "8.0.0",
"typescript": "4.3.5"
},
"dependencies": {
"@opentelemetry/instrumentation": "^0.27.0",
"@types/graphql": "14.5.0"
}
}
}

0 comments on commit 6766471

Please sign in to comment.