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

Fix breadcrumbs in HTTP clients #3683

Merged

Conversation

antonpirker
Copy link
Member

This moves the creation of breadcrumbs for outgoing HTTP requests from the maybe_create_breadcrumbs_from_span into the integrations.

Copy link

codecov bot commented Oct 22, 2024

❌ 2513 Tests Failed:

Tests completed Failed Passed Skipped
20307 2513 17794 4412
View the top 3 failed tests by shortest run time
tests.integrations.litestar.test_litestar test_middleware_callback_spans
Stack Traces | 0s run time
No failure message available
tests.integrations.litestar.test_litestar test_middleware_partial_receive_send
Stack Traces | 0s run time
No failure message available
tests.integrations.litestar.test_litestar test_middleware_partial_receive_send
Stack Traces | 0s run time
No failure message available

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

@antonpirker antonpirker marked this pull request as ready for review October 22, 2024 15:00
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.

Very nice!

@@ -258,12 +264,23 @@ async def on_request_start(session, trace_config_ctx, params):
params.headers[key] = value

trace_config_ctx.span = span
trace_config_ctx.span_data = data
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: maybe let's call it something like request_data instead of span_data since it's also used for breadcrumbs? (Also in the other integrations)

@antonpirker antonpirker merged commit 43ca6f3 into potel-base Oct 24, 2024
15 of 120 checks passed
@antonpirker antonpirker deleted the antonpirker/potel/fix-breadcrumbs-in-http-clients branch October 24, 2024 14:06
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