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

Added new Lambda Multiple Span Flag #334

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

AsakerMohd
Copy link
Contributor

Description of changes:
Added a new lambda span processor that

  1. Overwrites the INTERNAL API Span (example: opentelemetry.instrumentation.flask) to SERVER
  2. adds a new flag to Lambda Spans if there are multiple server spans in the trace.

Also updated the Operation Name logic so that if the span is an opentelemetry.instrumentation.flask span, the operation name is the API Route instead of the FunctionHandler operation name. This makes it easier to identify that the Span is an API span in the Application Signals console.

Testing:
Added unit test to test processor. Also tested by creating a lambda layer. The lambda span does have the new flag and the operation name for the API Span is the API Route.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@AsakerMohd AsakerMohd requested a review from a team as a code owner March 4, 2025 23:04
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.

1 participant