Skip to content

NH-113981 Remove unnecessary try-except around custom distro load_instrumentor call#660

Merged
tammy-baylis-swi merged 2 commits intomainfrom
NH-113981-update-loading-logs
Jul 3, 2025
Merged

NH-113981 Remove unnecessary try-except around custom distro load_instrumentor call#660
tammy-baylis-swi merged 2 commits intomainfrom
NH-113981-update-loading-logs

Conversation

@tammy-baylis-swi
Copy link
Contributor

Removes unnecessary try-except around custom distro load_instrumentor call, which is currently resulting in more scary error logs than necessary even though auto-instrumentation still works. See ticket for example logging.

Possible exceptions that would happen, such as the framework-to-instrument being absent, are handled by upstream's _load_instrumentors at call to opentelemetry-instrument. This is why upstream default distro (used by both default AWS layer and k8s image) does not do a try-except-log either.

There is a test version bump because I did a Lambda staging publish to test, and this fixes the too-much-logs issue.

@tammy-baylis-swi tammy-baylis-swi requested a review from a team as a code owner July 2, 2025 22:53
Copy link
Contributor

@cheempz cheempz left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the PR description @tammy-baylis-swi!

@tammy-baylis-swi tammy-baylis-swi merged commit 81acd9e into main Jul 3, 2025
76 checks passed
@tammy-baylis-swi tammy-baylis-swi deleted the NH-113981-update-loading-logs branch July 3, 2025 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants