opentelemetry-instrumentation-aws-lambda: Fix aws lambda span creation#3966
Merged
Merged
Conversation
tammy-baylis-swi
approved these changes
Nov 21, 2025
Contributor
tammy-baylis-swi
left a comment
There was a problem hiding this comment.
Thanks for fixes and linking the AWS docs in docstring.
8e83e7b to
e5fc809
Compare
27c5dd6 to
b7a78b1
Compare
b7a78b1 to
ca32f35
Compare
Contributor
Author
|
@xrmx When you get the time, can you take another look at this? I would like to get these changes added since it is very annoying having this library not conform with the spec, unlike the AWS Lambda instrumentation libraries in other languages. The spec seems to be consistent on the naming and behavior of the root Lambda span all the way to when it was originally introduced: https://github.com/open-telemetry/semantic-conventions/blob/0f981353221f53df273ebc01c61f8ff2298a9b92/specification/trace/semantic_conventions/faas.md |
xrmx
reviewed
Feb 5, 2026
xrmx
approved these changes
Feb 5, 2026
ca32f35 to
1bbf56b
Compare
wikaaaaa
pushed a commit
to wikaaaaa/opentelemetry-python-contrib
that referenced
this pull request
Feb 17, 2026
open-telemetry#3966) * update invocation span to have kind SERVER and have name equal to the function name * update Lambda invocation span name and kind * add type checking check * move changelog entry to 'Breaking changes' --------- Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
wrisa
pushed a commit
to wrisa/opentelemetry-python-contrib
that referenced
this pull request
Feb 18, 2026
open-telemetry#3966) * update invocation span to have kind SERVER and have name equal to the function name * update Lambda invocation span name and kind * add type checking check * move changelog entry to 'Breaking changes' --------- Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
sightseeker
added a commit
to sightseeker/opentelemetry-python-contrib
that referenced
this pull request
Mar 11, 2026
open-telemetry#3966) * update invocation span to have kind SERVER and have name equal to the function name * update Lambda invocation span name and kind * add type checking check * move changelog entry to 'Breaking changes' --------- Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes bug where the Lambda invocation
Spanname would be incorrectly set to the name of the Python handler function instead of the function name. Also fixes an issue where the Lambda invocationSpankind would occasionally not be set toSERVERwhich violates the OpenTelemetry FaaS semantic conventions.Fixes #3963
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Unit tests have been updated to reflect changing the invocation
Spanname to the Lambda function name and changing theSpankind to always beSERVER.Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.