-
Notifications
You must be signed in to change notification settings - Fork 506
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
[Hapi Plugin] Hapi instrumentation plugins wrapping issue #218
Labels
bug
Something isn't working
Comments
jk1z
changed the title
[Hapi Plugin] Hapi plugin getting
[Hapi Plugin] Hapi plugin getting name undefined error when registering plugins
Oct 12, 2020
@carolinee21 I have raise a PR to fix this issue. Also, thanks for the hard work you put in to make this plugin. |
jk1z
changed the title
[Hapi Plugin] Hapi plugin getting name undefined error when registering plugins
[Hapi Plugin] Hapi instrumentation plugin wrapping issue
Oct 12, 2020
jk1z
changed the title
[Hapi Plugin] Hapi instrumentation plugin wrapping issue
[Hapi instrumentation Plugin] Hapi plugin wrapping issue
Oct 12, 2020
jk1z
changed the title
[Hapi instrumentation Plugin] Hapi plugin wrapping issue
[Hapi Plugin] Hapi instrumentation plugin wrapping issue
Oct 12, 2020
jk1z
changed the title
[Hapi Plugin] Hapi instrumentation plugin wrapping issue
[Hapi Plugin] Hapi instrumentation plugins wrapping issue
Oct 12, 2020
This seems like a good add to support this other declaration format - I support adding this fix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of OpenTelemetry are you using?
"@opentelemetry/core": "^0.11.0",
"@opentelemetry/exporter-jaeger": "^0.11.0",
"@opentelemetry/hapi-instrumentation": "^0.10.0",
"@opentelemetry/node": "^0.11.0",
"@opentelemetry/plugin-http": "^0.11.0",
"@opentelemetry/plugin-https": "^0.11.0",
"@opentelemetry/plugin-mongodb": "^0.10.0",
"@opentelemetry/plugin-redis": "^0.10.0",
"@opentelemetry/tracing": "^0.11.0",
What version of Node are you using?
v14.2.0
What did you do?
In @Hapi version 19.1.1, when I'm trying to use
server.register([{plugin: require("./plugin-a")}, require("./plugin-b")}])
while hapi-instrumentation is on. I'm gettingCannot read property 'name' of undefined
from thehapi-instrumentation
package.This is because the
hapi-instrumentation
package only supports one of the plugin declaration format. The other declaration format are as follows:What did you expect to see?
The plugin should wrap the plugins normally
What did you see instead?
It throws an error
Additional context
Hapi allows two ways of making a plugin.
The text was updated successfully, but these errors were encountered: