Skip to content

Conversation

alexander-alderman-webb
Copy link
Contributor

@alexander-alderman-webb alexander-alderman-webb commented Oct 9, 2025

Description

Add code source as described in getsentry/sentry-docs#15161.

Factors out functionality from SQL query source and tests that it works in the HTTP request setting.

Issues

Closes #4881

Reminders

@alexander-alderman-webb alexander-alderman-webb marked this pull request as ready for review October 9, 2025 12:33
@alexander-alderman-webb alexander-alderman-webb requested a review from a team as a code owner October 9, 2025 12:33
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

@sentrivana sentrivana left a comment

Choose a reason for hiding this comment

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

Nice! See one optional suggestion.

span.finish()

with capture_internal_exceptions():
add_http_request_source(span)
Copy link
Contributor

Choose a reason for hiding this comment

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

Fun fact: It'd be a concern in (P)OTel as finished OTel spans can't be modified, but Sentry spans can so all good.

…4904)

Uses functionality from SQL query source and tests that it works in the
HTTP request setting.
@alexander-alderman-webb alexander-alderman-webb changed the title feat(stdlib): Add source information for slow outgoing HTTP requests feat: Add source information for slow outgoing HTTP requests Oct 10, 2025
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@alexander-alderman-webb alexander-alderman-webb merged commit cab17a4 into master Oct 10, 2025
116 of 118 checks passed
@alexander-alderman-webb alexander-alderman-webb deleted the webb/http-client-location branch October 10, 2025 11:49
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.

Add code source for outgoing HTTP requests

2 participants