Skip to content

fix: AWS Lambda collector. - #905

Merged
pvital merged 1 commit into
mainfrom
debug_aws_lambda_reporting_issue
Sep 25, 2026
Merged

pvital merged 1 commit into
mainfrom
debug_aws_lambda_reporting_issue

Conversation

@pvital

@pvital pvital commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Fix initialization of spans and metrics collectors for the AWS Lambda Collector to prevent breaking while reporting spans, like the error below:

[INFO]	2026-09-21T12:06:04.711Z		Stan is on the AWS Lambda scene. Starting Instana instrumentation version: 3.19.0
[DEBUG]	2026-09-21T12:06:04.711Z		Runtime environment: Machine: x86_64, System: Linux, Python version: 3.11.16
[DEBUG]	2026-09-21T12:06:04.711Z		Loading AWS Lambda Collector
[DEBUG]	2026-09-21T12:06:04.711Z		BaseCollector.start: launching collection thread
[DEBUG]	2026-09-21T12:06:04.712Z		report_data_payload: connection error (<class 'TypeError'>)
[DEBUG]	2026-09-21T12:06:04.765Z		Instrumenting asyncio
[DEBUG]	2026-09-21T12:06:04.782Z		Instrumenting logging
[DEBUG]	2026-09-21T12:06:04.798Z		Instrumenting urllib3
[DEBUG]	2026-09-21T12:06:04.803Z		Instrumenting gevent: gevent not detected or loaded.  Nothing done.
[DEBUG]	2026-09-21T12:06:04.808Z		Instrumenting DynamoDB
[DEBUG]	2026-09-21T12:06:04.930Z		Instrumenting s3
[DEBUG]	2026-09-21T12:06:04.936Z		Instrumenting AWS Lambda handler (lambda_function.lambda_handler)
START RequestId: 64a581fc-7a04-49e7-b932-e71ea604942f Version: $LATEST
[DEBUG]	2026-09-21T12:06:04.961Z	64a581fc-7a04-49e7-b932-e71ea604942f	Detected as Unknown Trigger: {'key1': 'value1', 'key2': 'value2', 'key3': 'value3'}
[DEBUG]	2026-09-21T12:06:06.596Z	64a581fc-7a04-49e7-b932-e71ea604942f	Collector.shutdown: Reporting final data.
[DEBUG]	2026-09-21T12:06:06.597Z	64a581fc-7a04-49e7-b932-e71ea604942f	report_data_payload: connection error (<class 'TypeError'>)
END RequestId: 64a581fc-7a04-49e7-b932-e71ea604942f
REPORT RequestId: 64a581fc-7a04-49e7-b932-e71ea604942f	Duration: 1675.09 ms	Billed Duration: 2486 ms	Memory Size: 128 MB	Max Memory Used: 86 MB	Init Duration: 810.79 ms

Fix initialization of spans and metrics collectors for the AWS Lambda Collector.

Signed-off-by: Paulo Vital <paulo.vital@ibm.com>
@pvital pvital self-assigned this Sep 24, 2026
@pvital
pvital requested a review from a team as a code owner September 24, 2026 22:05

@GSVarsha GSVarsha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me!

@pvital
pvital merged commit c23ba45 into main Sep 25, 2026
17 of 21 checks passed
@pvital
pvital deleted the debug_aws_lambda_reporting_issue branch September 25, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants