Skip to content

Respect OTLP Exporter environment when configuring exporters #1797

Description

@mheffner

Is your feature request related to a problem? Please describe.

I made the assumption I could change the exporter config on the NodeJS Lambda layer by setting OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf, however it appears to be hard-coded in the NodeJS Lambda layer to http/json.

Describe the solution you'd like

When using the NodeSDK directly it allows you to configure the exporters from the environment. Naturally, it feels like you should be able to configure the NodeJS OpenTelemetry Lambda layer using similar environment.

The solution I'd propose is respecting the similar environment variables, so that using the NodeJS Lambda layer behaves similarly to using the Node SDK.

Activity

  1. added
    enhancement
    on May 6, 2025
  2. serkan-ozal commented on May 7, 2025

    @serkan-ozal
    Member

    Hi @mheffner,

    Yes, unfortunately it is hard-coded to drop dependencies of other exporter libraries for reducing coldstart overhead. Let us check what we can do to handle loading/initializing those modules dynamically with webpack bundle.

  3. bencoveney commented on Sep 1, 2025

    @bencoveney

    Probably the documentation here should read

    "The hard coded exporter uses the protocol http/json"

    Instead of

    "The hard coded exporter uses the protocol http/protobuf"

  4. github-actions commented on Sep 2, 2026

    @github-actions
    Contributor

    This issue was marked stale. It will be closed in 30 days without additional activity.

  5. moved this from Todo to In Progress in Lambda Triageon Nov 18, 2026
  6. moved this from In Progress to Done in Lambda Triageon Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Fields

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions