Skip to content

Conversation

@pkarakal
Copy link

Description

This updates the aws-lambda instrumentation to respect the OTEL_SEMCONV_STABILITY_OPT_IN environment variable when dealing with HTTP spans. It stops using the SpanAttributes directly and instead opted to use the http utility methods created and used by other http instrumentations. This however means that the aws-lambda now also depends on the opentelemetry-util-http package.

Ref #3475

Type of change

  • New feature (non-breaking change which adds functionality)

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

  • Run tests

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • 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
  • Documentation has been updated

@pkarakal pkarakal requested a review from a team as a code owner November 12, 2025 23:28
@pkarakal pkarakal force-pushed the aws-lambda/span-attributes-http-stable branch 2 times, most recently from 968254c to 666a10c Compare November 12, 2025 23:34
More info:
https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
"""
result = {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename this to something more descriptive like span_attributes?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated it and rebased on top of the latest main

@pkarakal pkarakal force-pushed the aws-lambda/span-attributes-http-stable branch from 666a10c to 19ec493 Compare November 21, 2025 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants