Skip to content

Conversation

@axel584
Copy link

@axel584 axel584 commented Nov 9, 2025

Description

This PR enhances the httpx instrumentation by recording exceptions directly in spans using span.record_exception(exception).
Previously, only span.set_status(StatusCode.ERROR) was set, which made it harder to inspect the actual error details in traces.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Does This PR Require a Core Repo Change?

  • No.

@xrmx
Copy link
Contributor

xrmx commented Nov 27, 2025

Are you sure the common code in the api isn't already taking care of adding it? If not, please add a test that is not passing with the current code.

@xrmx xrmx moved this to Reviewed PRs that need fixes in @xrmx's Python PR digest Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Reviewed PRs that need fixes

Development

Successfully merging this pull request may close these issues.

2 participants