Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@opentelemetry/plugin-grpc-js is missing index.ts #1355

Closed
reggiemcdonald opened this issue Jul 27, 2020 · 1 comment
Closed

@opentelemetry/plugin-grpc-js is missing index.ts #1355

reggiemcdonald opened this issue Jul 27, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@reggiemcdonald
Copy link
Contributor

reggiemcdonald commented Jul 27, 2020

What version of OpenTelemetry are you using?

0.9.0

What version of Node are you using?

v14.4.0

What did you do?

Modified the example here to use grpc-js and added a tracer similar to the grpc example tracer.

What did you expect to see?

Grpc requests should be traced.

What did you see instead?

The plugin does not load successfully because there is a missing index.ts:

PluginLoader#load: trying to load @grpc/grpc-js@1.1.3
PluginLoader#load: could not load plugin @opentelemetry/plugin-grpc-js of module @grpc/grpc-js. Error: Cannot find module '~/grpc/examples/node/node_modules/@opentelemetry/plugin-grpc-js/build/src/index.js'. Please verify that the package.json has a valid "main" entry

Additional context

The package.json has the following main entry:

{
"name": "@opentelemetry/plugin-grpc-js",
"version": "0.10.0",
"description": "OpenTelemetry @grpc/grpc-js automatic instrumentation package.",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",

but there isn't a corresponding index.ts file at that location. An index file likely needs to be created

@reggiemcdonald reggiemcdonald added the bug Something isn't working label Jul 27, 2020
@reggiemcdonald
Copy link
Contributor Author

Resolved by #1358

pichlermarc pushed a commit to dynatrace-oss-contrib/opentelemetry-js that referenced this issue Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant