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

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

Open
ademar-prothon opened this issue Jun 26, 2023 · 7 comments
Labels
area:auto-instrumentation Issues for auto-instrumentation auto-instrumentation:nodejs enhancement New feature or request

Comments

@ademar-prothon
Copy link

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 !

@TylerHelmuth TylerHelmuth added area:auto-instrumentation Issues for auto-instrumentation auto-instrumentation:nodejs enhancement New feature or request labels Jun 26, 2023
@TylerHelmuth
Copy link
Member

@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?

@fracampit
Copy link

fracampit commented Aug 3, 2023

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

@TylerHelmuth
Copy link
Member

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

@fracampit
Copy link

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

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

@adityamehra
Copy link

Hello @TylerHelmuth Was this issue fixed by open-telemetry/opentelemetry-js#4554?

@fracampit
Copy link

Any updates on this?

@garysassano
Copy link

I confirm that the error is still present.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:auto-instrumentation Issues for auto-instrumentation auto-instrumentation:nodejs enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants