-
Notifications
You must be signed in to change notification settings - Fork 539
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update deprecations in instrumentation-express/examples (#1842)
* chore: Update express example package.json since it moved repos This must have moved into contrib a while back * docs: Modify the install command so that the example runs Without this, 'npm install' now depends on directories higher than this one. It does not create a node_modules and then ts-node does not work. Looks like the use of workspaces at the repository root interferes with this example, but this change to the install command gets around that. * chore: Update instrumentation-express example otel packages to the latest * chore: Update all deprecations in tracer.ts Jaeger accepts OTLP now, so the OtlpTraceExporter just works * update package-lock for (hopefully) desired package.json dep updates * sync package-lock.json * sync package-lock.json again (dropping dev:true from '@types/express', why I am not sure) * add setup script and alternative install * sync package-lock.json * bump the express example's dep to the instr-express version in the repo I also had to manually remove this (vestigial?) entry in package-lock.json that was breaking 'npm install'. * signing off on changes Signed-off-by: Jamie Danielson <[email protected]> --------- Signed-off-by: Jamie Danielson <[email protected]> Co-authored-by: Trent Mick <[email protected]> Co-authored-by: Jamie Danielson <[email protected]> Co-authored-by: Marc Pichler <[email protected]> Co-authored-by: Jamie Danielson <[email protected]>
- Loading branch information
1 parent
c8bebc7
commit 3156c94
Showing
4 changed files
with
46 additions
and
191 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
{ | ||
"name": "express-example", | ||
"private": true, | ||
"version": "0.28.0", | ||
"version": "0.34.1", | ||
"description": "Example of Express integration with OpenTelemetry", | ||
"main": "index.js", | ||
"scripts": { | ||
"zipkin:server": "cross-env EXPORTER=zipkin ts-node src/server.ts", | ||
"zipkin:client": "cross-env EXPORTER=zipkin ts-node src/client.ts", | ||
"jaeger:server": "cross-env EXPORTER=jaeger ts-node src/server.ts", | ||
"jaeger:client": "cross-env EXPORTER=jaeger ts-node src/client.ts", | ||
"compile": "tsc -p ." | ||
"compile": "tsc -p .", | ||
"setup": "cd ../../../../ && npm ci && cd plugins/node/opentelemetry-instrumentation-express && npm run compile && cd examples && npm run compile" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://[email protected]/open-telemetry/opentelemetry-js.git" | ||
"url": "git+ssh://[email protected]/open-telemetry/opentelemetry-js-contrib.git", | ||
"directory": "plugins/node/opentelemetry-instrumentation-express" | ||
}, | ||
"keywords": [ | ||
"opentelemetry", | ||
|
@@ -26,24 +27,25 @@ | |
"author": "OpenTelemetry Authors", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/open-telemetry/opentelemetry-js/issues" | ||
"url": "https://github.com/open-telemetry/opentelemetry-js-contrib/issues" | ||
}, | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-express/examples#readme", | ||
"dependencies": { | ||
"@opentelemetry/api": "^1.0.0", | ||
"@opentelemetry/exporter-jaeger": "^1.0.0", | ||
"@opentelemetry/exporter-zipkin": "^1.0.0", | ||
"@opentelemetry/api": "^1.3.0", | ||
"@opentelemetry/exporter-jaeger": "^1.18.1", | ||
"@opentelemetry/exporter-trace-otlp-proto": "^0.46.0", | ||
"@opentelemetry/exporter-zipkin": "^1.18.1", | ||
"@opentelemetry/instrumentation": "^0.46.0", | ||
"@opentelemetry/instrumentation-express": "0.28.0", | ||
"@opentelemetry/instrumentation-express": "^0.34.1", | ||
"@opentelemetry/instrumentation-http": "^0.46.0", | ||
"@opentelemetry/resources": "^1.0.0", | ||
"@opentelemetry/sdk-trace-base": "^1.0.0", | ||
"@opentelemetry/sdk-trace-node": "^1.0.0", | ||
"@opentelemetry/semantic-conventions": "^1.0.0", | ||
"@opentelemetry/resources": "^1.18.1", | ||
"@opentelemetry/sdk-trace-base": "^1.18.1", | ||
"@opentelemetry/sdk-trace-node": "^1.18.1", | ||
"@opentelemetry/semantic-conventions": "^1.18.1", | ||
"axios": "^1.6.0", | ||
"cross-env": "^7.0.3", | ||
"express": "^4.17.1" | ||
}, | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js#readme", | ||
"devDependencies": { | ||
"@types/express": "^4.17.13", | ||
"ts-node": "^10.6.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters