open-telemetry / opentelemetry-demo

This repository contains the OpenTelemetry Astronomy Shop, a microservice-based distributed system intended to illustrate the implementation of OpenTelemetry in a near real-world environment.
https://opentelemetry.io/docs/demo/
Apache License 2.0
1.7k stars 1.08k forks source link

[paymentservice] ReferenceError: Cannot access 'req' before initialization #1664

Open KazusaW1999 opened 2 months ago

KazusaW1999 commented 2 months ago

Bug Report

https://github.com/open-telemetry/opentelemetry-demo.git

Symptom

Seems paymentservice's image has a internal error.

paymentservice@1.4.0 start │ │ │ │ > node --require ./opentelemetry.js index.js │ │ │ │ (node:17) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. │ │ │ │ (Use node --trace-deprecation ... to show where the warning was created) │ │ │ │ {"level":30,"time":1720766685241,"pid":17,"hostname":"wzy-opt-demo-paymentservice-566bf7bd94-n8zx9","msg":"PaymentService │PC serv │ started on port 8080"} │ │ (node:17) DeprecationWarning: Calling start() is no longer necessary. It can be safely omitted. │ │ │ │ /usr/src/app/node_modules/@opentelemetry/resource-detector-aws/build/src/detectors/AwsEc2Detector.js:112 │ │ │ │ req.abort(); │ │ │ │ ^ │ │ │ │ ReferenceError: Cannot access 'req' before initialization │ │ │ │ at Timeout._onTimeout (/usr/src/app/node_modules/@opentelemetry/resource-detector-aws/build/src/detectors/AwsEc2Detect │.js:112 │7) │ │ at listOnTimeout (node:internal/timers:573:17) │ │ │ │ at process.processTimers (node:internal/timers:514:7) │ │ │ │ Node.js v21.7.3

image image

Reproduce

kubeversion: v1.25.1 Docker Engine - Community Version: 26.1.3 helm install wzy-opt-demo -n default opentelemetry-demo-0.32.0.tgz --debug

julianocosta89 commented 1 month ago

@KazusaW1999 could you try to update your helm chart and deploy it again?