Skip to content

@opentelemetry/instrumentation-hapi TypeError: Cannot set property register of #<Object> which has only a getter #2797

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

Open
Givailson opened this issue Apr 22, 2025 · 0 comments
Labels
bug Something isn't working pkg:instrumentation-hapi pkg-status:unmaintained This package is unmaintained. Only bugfixes may be acceped until a new owner has been found. priority:p1 Bugs which cause problems in end-user applications such as crashes, data inconsistencies

Comments

@Givailson
Copy link

Givailson commented Apr 22, 2025

What version of OpenTelemetry are you using?

"@opentelemetry/api": "^1.9.0",
"@opentelemetry/exporter-trace-otlp-grpc": "^0.54.0",
"@opentelemetry/instrumentation": "^0.54.0",
"@opentelemetry/instrumentation-amqplib": "^0.43.0",
"@opentelemetry/instrumentation-aws-sdk": "^0.45.0",
"@opentelemetry/instrumentation-express": "^0.44.0",
"@opentelemetry/instrumentation-graphql": "^0.44.0",
"@opentelemetry/instrumentation-hapi": "^0.46.0",
"@opentelemetry/instrumentation-http": "^0.54.0",
"@opentelemetry/instrumentation-ioredis": "^0.44.0",
"@opentelemetry/instrumentation-knex": "^0.41.0",
"@opentelemetry/instrumentation-mongodb": "^0.48.0",
"@opentelemetry/instrumentation-mongoose": "^0.46.0",
"@opentelemetry/instrumentation-tedious": "^0.15.0",
"@opentelemetry/resources": "^1.27.0",
"@opentelemetry/sdk-trace-base": "^1.27.0",
"@opentelemetry/sdk-trace-node": "^1.27.0",
"@opentelemetry/semantic-conventions": "^1.27.0"

What version of Node are you using?

node v22.13.1

What did you do?

I was just instantiating the object to be used with OpenTelemetry

Similar to:

const provider = new NodeTracerProvider();
provider.register();

registerInstrumentations({
  instrumentations: [
    new HapiInstrumentation(),
  ],
});

What did you expect to see?

Running without erros

What did you see instead?

Image

Additional context

The error is been triggered from this class:

@Givailson Givailson added the bug Something isn't working label Apr 22, 2025
@pichlermarc pichlermarc added priority:p1 Bugs which cause problems in end-user applications such as crashes, data inconsistencies pkg:instrumentation-hapi pkg-status:unmaintained This package is unmaintained. Only bugfixes may be acceped until a new owner has been found. labels Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pkg:instrumentation-hapi pkg-status:unmaintained This package is unmaintained. Only bugfixes may be acceped until a new owner has been found. priority:p1 Bugs which cause problems in end-user applications such as crashes, data inconsistencies
Projects
None yet
Development

No branches or pull requests

2 participants