Skip to content

Commit

Permalink
Update nodejs instrumentation to 0.27.0 (open-telemetry#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga authored Feb 3, 2022
1 parent 2a04983 commit 29f1a34
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/publish-autoinstrumentation-nodejs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- '.github/workflows/publish-autoinstrumentation-nodejs.yaml'
branches:
- main
pull_request:
paths:
- 'autoinstrumentation/nodejs/**'
- '.github/workflows/publish-autoinstrumentation-nodejs.yaml'
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -38,7 +42,7 @@ jobs:
uses: docker/[email protected]
with:
context: autoinstrumentation/nodejs
push: true
push: ${{ github.event_name == 'push' }}
build-args: version=${{ env.VERSION }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
8 changes: 4 additions & 4 deletions autoinstrumentation/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"typescript": "^4.4.4"
},
"dependencies": {
"@opentelemetry/api": "1.0.3",
"@opentelemetry/auto-instrumentations-node": "0.26.0",
"@opentelemetry/exporter-otlp-grpc": "0.26.0",
"@opentelemetry/sdk-node": "0.26.0"
"@opentelemetry/api": "1.0.4",
"@opentelemetry/auto-instrumentations-node": "0.27.2",
"@opentelemetry/exporter-trace-otlp-grpc": "0.27.0",
"@opentelemetry/sdk-node": "0.27.0"
}
}
2 changes: 1 addition & 1 deletion autoinstrumentation/nodejs/src/autoinstrumentation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
import { OTLPTraceExporter } from '@opentelemetry/exporter-otlp-grpc';
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-grpc';

import { NodeSDK } from '@opentelemetry/sdk-node';

Expand Down
1 change: 1 addition & 0 deletions autoinstrumentation/nodejs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"noImplicitReturns": true,
"noUnusedLocals": true,
"pretty": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"strictNullChecks": true,
Expand Down

0 comments on commit 29f1a34

Please sign in to comment.