Skip to content

Commit

Permalink
feat(grpc-js): enable autoinstrumentation by default (#1343)
Browse files Browse the repository at this point in the history
  • Loading branch information
markwolff committed Jul 23, 2020
1 parent d2f6829 commit 827cca3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions metapackages/plugins-node-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This package depends on all core node plugins maintained by OpenTelemetry author
## Plugins

- [@opentelemetry/plugin-grpc][otel-plugin-grpc]
- [@opentelemetry/plugin-grpc-js][otel-plugin-grpc-js]
- [@opentelemetry/plugin-http][otel-plugin-http]
- [@opentelemetry/plugin-https][otel-plugin-https]

Expand All @@ -33,5 +34,6 @@ Apache 2.0 - See [LICENSE][license-url] for more information.
[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Fplugins-node-core.svg

[otel-plugin-grpc]: https://github.com/open-telemetry/opentelemetry-js/tree/master/packages/opentelemetry-plugin-grpc
[otel-plugin-grpc-js]: https://github.com/open-telemetry/opentelemetry-js/tree/master/packages/opentelemetry-plugin-grpc-js
[otel-plugin-http]: https://github.com/open-telemetry/opentelemetry-js/tree/master/packages/opentelemetry-plugin-http
[otel-plugin-https]: https://github.com/open-telemetry/opentelemetry-js/tree/master/packages/opentelemetry-plugin-https
1 change: 1 addition & 0 deletions metapackages/plugins-node-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"dependencies": {
"@opentelemetry/plugin-grpc": "^0.9.0",
"@opentelemetry/plugin-grpc-js": "^0.9.0",
"@opentelemetry/plugin-http": "^0.9.0",
"@opentelemetry/plugin-https": "^0.9.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/opentelemetry-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ For example, `OTEL_NO_PATCH_MODULES=pg,https` will disable the postgres plugin a

## Examples

See how to automatically instrument [http](https://github.com/open-telemetry/opentelemetry-js/tree/master/examples/http) and [gRPC](https://github.com/open-telemetry/opentelemetry-js/tree/master/examples/grpc) using node-sdk.
See how to automatically instrument [http](https://github.com/open-telemetry/opentelemetry-js/tree/master/examples/http) and [gRPC](https://github.com/open-telemetry/opentelemetry-js/tree/master/examples/grpc) / [grpc-js](https://github.com/open-telemetry/opentelemetry-js/tree/master/examples/grpc-js) using node-sdk.

## Useful links

Expand Down
1 change: 1 addition & 0 deletions packages/opentelemetry-node/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export interface NodeTracerConfig extends TracerConfig {
export const DEFAULT_INSTRUMENTATION_PLUGINS: Plugins = {
mongodb: { enabled: true, path: '@opentelemetry/plugin-mongodb' },
grpc: { enabled: true, path: '@opentelemetry/plugin-grpc' },
'@grpc/grpc-js': { enabled: true, path: '@opentelemetry/plugin-grpc-js' },
http: { enabled: true, path: '@opentelemetry/plugin-http' },
https: { enabled: true, path: '@opentelemetry/plugin-https' },
mysql: { enabled: true, path: '@opentelemetry/plugin-mysql' },
Expand Down

0 comments on commit 827cca3

Please sign in to comment.