Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 6eaec0e

Browse files
author
Amir Blum
authored
feat: support core experimental versions ^0.28.0 (#228)
1 parent 06fedd1 commit 6eaec0e

File tree

30 files changed

+211
-192
lines changed

30 files changed

+211
-192
lines changed

.github/workflows/daily-test.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@ jobs:
3131
env:
3232
NEO4J_AUTH: neo4j/test
3333

34-
rabbitmq:
35-
image: rabbitmq:3
36-
ports:
37-
- 22221:5672
38-
env:
39-
RABBITMQ_DEFAULT_USER: username
40-
RABBITMQ_DEFAULT_PASS: password
41-
4234

4335
steps:
4436
- uses: actions/checkout@v2

.github/workflows/test.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@ jobs:
3030
env:
3131
NEO4J_AUTH: neo4j/test
3232

33-
rabbitmq:
34-
image: rabbitmq:3
35-
ports:
36-
- 22221:5672
37-
env:
38-
RABBITMQ_DEFAULT_USER: username
39-
RABBITMQ_DEFAULT_PASS: password
40-
4133
steps:
4234

4335
- uses: actions/checkout@v2
@@ -47,8 +39,13 @@ jobs:
4739
- name: Fetch all history for all tags and branches
4840
run: git fetch
4941

42+
- name: Use Node.js 14
43+
uses: actions/setup-node@v1
44+
with:
45+
node-version: 14
46+
5047
- name: Install Dependencies
51-
run: yarn
48+
run: yarn install
5249

5350
- name: Build
5451
run: yarn build:ci

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The instrumentations in this repo are:
2929
- strictly complies with [open telemetry semantic conventions](https://github.com/open-telemetry/opentelemetry-specification/tree/main/specification/trace/semantic_conventions)
3030
- up to date with latest SDK version
3131

32-
**Compatible with [SDK stable v1.0.1](https://github.com/open-telemetry/opentelemetry-js/releases/tag/stable%2Fv1.0.1) and [SDK experimental v0.27.0](https://github.com/open-telemetry/opentelemetry-js/releases/tag/experimental%2Fv0.27.0)**
32+
**Compatible with [SDK stable ^1.0.0](https://github.com/open-telemetry/opentelemetry-js/tree/stable/v1.0.0) and [SDK experimental ^0.28.0](https://github.com/open-telemetry/opentelemetry-js/tree/v0.28.0/experimental/packages)**
3333
## Instrumentations
3434
| Instrumentation Package | Instrumented Lib | NPM |
3535
| --- | --- | --- |
@@ -64,6 +64,7 @@ The instrumentations in this repo are:
6464

6565
| Instrumentations Version | OpenTelemetry Core | OpenTelemetry Experimental |
6666
| --- | --- | --- |
67+
| 0.28.x | ^1.0.0 | ^0.28.0 |
6768
| 0.27.x | ^1.0.1 | ^0.27.0 |
6869
| 0.26.x | ^1.0.0 | ^0.26.0 |
6970
| 0.25.x | 0.25.0 | --- |

detectors/node/resource-detector-deployment/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"scripts": {
2323
"build": "tsc",
24-
"prepare": "yarn run build",
24+
"prepare": "yarn build",
2525
"test": "mocha",
2626
"test:jaeger": "OTEL_EXPORTER_JAEGER_AGENT_HOST=localhost mocha",
2727
"watch": "tsc -w",
@@ -33,15 +33,15 @@
3333
"url": "https://github.com/aspecto-io/opentelemetry-ext-js/issues"
3434
},
3535
"peerDependencies": {
36-
"@opentelemetry/api": "^1.0.1"
36+
"@opentelemetry/api": "^1.0.0"
3737
},
3838
"dependencies": {
3939
"@opentelemetry/resources": "^1.0.0",
4040
"@opentelemetry/semantic-conventions": "^1.0.0",
4141
"opentelemetry-resource-detector-sync-api": "^0.26.0"
4242
},
4343
"devDependencies": {
44-
"@opentelemetry/api": "^1.0.2",
44+
"@opentelemetry/api": "^1.0.0",
4545
"@types/mocha": "^8.2.2",
4646
"expect": "^26.6.2",
4747
"mocha": "^8.4.0",

detectors/node/resource-detector-git/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"scripts": {
2323
"postinstall": "node dist/src/persist-on-post-install.js || exit 0",
2424
"build": "tsc",
25-
"prepare": "yarn run build",
25+
"prepare": "yarn build",
2626
"test": "mocha",
2727
"test:jaeger": "OTEL_EXPORTER_JAEGER_AGENT_HOST=localhost mocha",
2828
"watch": "tsc -w",
@@ -34,7 +34,7 @@
3434
"url": "https://github.com/aspecto-io/opentelemetry-ext-js/issues"
3535
},
3636
"peerDependencies": {
37-
"@opentelemetry/api": "^1.0.1"
37+
"@opentelemetry/api": "^1.0.0"
3838
},
3939
"dependencies": {
4040
"@opentelemetry/resources": "^1.0.0",
@@ -43,7 +43,7 @@
4343
"uuid": "^8.3.2"
4444
},
4545
"devDependencies": {
46-
"@opentelemetry/api": "^1.0.2",
46+
"@opentelemetry/api": "^1.0.0",
4747
"@types/mocha": "^8.2.2",
4848
"@types/node": "^14.0.0",
4949
"expect": "^26.6.2",

detectors/node/resource-detector-service/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"scripts": {
2323
"build": "tsc",
24-
"prepare": "yarn run build",
24+
"prepare": "yarn build",
2525
"test": "mocha",
2626
"test:jaeger": "OTEL_EXPORTER_JAEGER_AGENT_HOST=localhost mocha",
2727
"watch": "tsc -w",
@@ -33,7 +33,7 @@
3333
"url": "https://github.com/aspecto-io/opentelemetry-ext-js/issues"
3434
},
3535
"peerDependencies": {
36-
"@opentelemetry/api": "^1.0.1"
36+
"@opentelemetry/api": "^1.0.0"
3737
},
3838
"dependencies": {
3939
"@opentelemetry/resources": "^1.0.0",
@@ -42,7 +42,7 @@
4242
"uuid": "^8.3.2"
4343
},
4444
"devDependencies": {
45-
"@opentelemetry/api": "^1.0.2",
45+
"@opentelemetry/api": "^1.0.0",
4646
"@types/mocha": "^8.2.2",
4747
"expect": "^26.6.2",
4848
"mocha": "^8.4.0",

detectors/resource-detector-sync-api/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"scripts": {
2323
"build": "tsc",
24-
"prepare": "yarn run build",
24+
"prepare": "yarn build",
2525
"watch": "tsc -w",
2626
"version:update": "node ../../scripts/version-update.js",
2727
"version": "yarn run version:update"
@@ -30,13 +30,14 @@
3030
"url": "https://github.com/aspecto-io/opentelemetry-ext-js/issues"
3131
},
3232
"peerDependencies": {
33-
"@opentelemetry/api": "^1.0.1"
33+
"@opentelemetry/api": "^1.0.0"
3434
},
3535
"dependencies": {
3636
"@opentelemetry/resources": "^1.0.0"
3737
},
3838
"devDependencies": {
3939
"ts-node": "^9.1.1",
40-
"typescript": "4.3.4"
40+
"typescript": "4.3.4",
41+
"@opentelemetry/api": "^1.0.0"
4142
}
4243
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
'@elastic/elasticsearch':
2-
versions: "*"
2+
versions: ">=5 <8"
33
commands:
44
- yarn test

packages/instrumentation-elasticsearch/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"scripts": {
3131
"build": "tsc",
32-
"prepare": "yarn run build",
32+
"prepare": "yarn build",
3333
"watch": "tsc -w",
3434
"version:update": "node ../../scripts/version-update.js",
3535
"version": "yarn run version:update",
@@ -42,17 +42,17 @@
4242
"url": "https://github.com/aspecto-io/opentelemetry-ext-js/issues"
4343
},
4444
"peerDependencies": {
45-
"@opentelemetry/api": "^1.0.1"
45+
"@opentelemetry/api": "^1.0.0"
4646
},
4747
"dependencies": {
4848
"@opentelemetry/core": "^1.0.0",
49-
"@opentelemetry/instrumentation": "^0.27.0",
49+
"@opentelemetry/instrumentation": "^0.28.0",
5050
"@opentelemetry/semantic-conventions": "^1.0.0"
5151
},
5252
"devDependencies": {
5353
"@elastic/elasticsearch": "^7.8.0",
54-
"@opentelemetry/api": "^1.0.2",
55-
"@opentelemetry/contrib-test-utils": "^0.28.0",
54+
"@opentelemetry/api": "^1.0.0",
55+
"@opentelemetry/contrib-test-utils": "^0.30.0",
5656
"@types/chai": "^4.2.15",
5757
"@types/mocha": "^8.2.2",
5858
"chai": "^4.3.0",

packages/instrumentation-elasticsearch/src/elasticsearch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class ElasticsearchInstrumentation extends InstrumentationBase<typeof ela
4141
({ path, operationClassName }) =>
4242
new InstrumentationNodeModuleFile<any>(
4343
`@elastic/elasticsearch/api/${path}`,
44-
['*'],
44+
['>=5 <8'],
4545
this.patch.bind(this, operationClassName),
4646
this.unpatch.bind(this)
4747
)

0 commit comments

Comments
 (0)