opentelemetry-operator icon indicating copy to clipboard operation
opentelemetry-operator copied to clipboard

Nodejs instrumentation - Propagator "xray" requested through environment variable is unavailable.

Open ademar-prothon opened this issue 2 years ago • 8 comments

We are unable to use the xray propagator on an auto-instrumented nodejs app. Env : k8s on eks v 1.26.4

Instrumentation :

apiVersion: opentelemetry.io/v1alpha1
kind: Instrumentation
metadata:
  name: exchange-platform
  namespace: default
spec:
  exporter:
    endpoint: http://xray-collector-collector.default.svc.cluster.local:4318
  propagators:
    - xray
  sampler:
    type: always_on
  nodejs:
    image: ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-nodejs:latest
    env:
      - name: OTEL_EXPORTER_OTLP_ENDPOINT
        value: http://xray-collector-collector.default.svc.cluster.local:4317
      - name: OTEL_LOG_LEVEL
        value: info

Error message : Propagator "xray" requested through environment variable is unavailable.

Any ideas ? Thanks !

ademar-prothon avatar Jun 26 '23 18:06 ademar-prothon

@ademar-prothon thanks for bring this to our attention. For this to work we need to modify this file and the package.json to include the xray propagator. Is this something you'd like to work on?

TylerHelmuth avatar Jun 26 '23 19:06 TylerHelmuth

just hit the same problem. Is there any that can be done at our end, or is xray currently unavailable for NodeJs instrumentation?

08-03-2023 01:37:30 PM Propagator "xray" requested through environment variable is unavailable.
08-03-2023 01:37:30 PM Starting OpenTelemetry
08-03-2023 01:37:26 PM $ node -r ./tracing.js ./server.js

fracampit avatar Aug 03 '23 12:08 fracampit

@fracampit We need the NodeJS sdk updated: https://github.com/open-telemetry/opentelemetry-operator/pull/1872#discussion_r1253770528

TylerHelmuth avatar Aug 03 '23 13:08 TylerHelmuth

@fracampit We need the NodeJS sdk updated: #1872 (comment)

Thanks for the update. I'll keep an eye on this space then :)

fracampit avatar Aug 03 '23 14:08 fracampit

Hello @TylerHelmuth Was this issue fixed by https://github.com/open-telemetry/opentelemetry-js/pull/4554?

adityamehra avatar Aug 27 '24 13:08 adityamehra

Any updates on this?

fracampit avatar Oct 30 '24 15:10 fracampit

I confirm that the error is still present.

image

image

garysassano avatar Nov 18 '24 23:11 garysassano

@garysassano For reference here, 'Cannot redefine property: handler' error can be solved. https://github.com/aws-observability/aws-otel-lambda/issues/284#issuecomment-1465465790

jungjinlee-plugo avatar Apr 08 '25 05:04 jungjinlee-plugo