Skip to content

fix(aws-lambda): support ALB multiValueHeaders#4605

Open
jbfenton wants to merge 6 commits into
open-telemetry:mainfrom
jbfenton:lambda-alb-multi-header-support
Open

fix(aws-lambda): support ALB multiValueHeaders#4605
jbfenton wants to merge 6 commits into
open-telemetry:mainfrom
jbfenton:lambda-alb-multi-header-support

Conversation

@jbfenton
Copy link
Copy Markdown
Contributor

@jbfenton jbfenton commented May 19, 2026

Description

Adds support for extracting propagated headers and HTTP request attributes from AWS Lambda ALB events that use multiValueHeaders.

This keeps the existing headers behaviour unchanged and falls back to the first value for each header in multiValueHeaders when needed.

Implements part of an older (closed) PR: #2585

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • uv run tox -e py312-test-instrumentation-aws-lambda -- instrumentation/opentelemetry-instrumentation-aws-lambda/tests/test_aws_lambda_instrumentation_manual.py -k "alb or multi_value"
  • uv run tox -e py312-test-instrumentation-aws-lambda
  • uv run pre-commit run ruff --files instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/__init__.py instrumentation/opentelemetry-instrumentation-aws-lambda/tests/test_aws_lambda_instrumentation_manual.py

Does This PR Require a Core Repo Change?

  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added

@jbfenton jbfenton force-pushed the lambda-alb-multi-header-support branch from 69b52ab to 5436807 Compare May 19, 2026 11:11
@jbfenton jbfenton marked this pull request as ready for review May 19, 2026 11:18
@jbfenton jbfenton requested a review from a team as a code owner May 19, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants