Skip to content

Conversation

@lann
Copy link
Collaborator

@lann lann commented Aug 27, 2025

The debug_span! was disabled by default tracing config, preventing otel context from being propagated through it.

@lann lann requested a review from calebschoepp August 27, 2025 20:50
@lann lann force-pushed the fix-otel-span-propagation branch from 131c297 to 5074e3c Compare August 27, 2025 20:52
@lann lann requested review from itowlson and removed request for calebschoepp August 27, 2025 20:52
@lann lann closed this Aug 27, 2025
@lann lann removed the request for review from itowlson August 27, 2025 20:53
@lann
Copy link
Collaborator Author

lann commented Aug 27, 2025

I made a hot mess of two parallel branches...

@lann lann reopened this Aug 27, 2025
The debug_span! was disabled by default tracing config, preventing otel
context from being propagated through it.

Signed-off-by: Lann Martin <[email protected]>
@lann lann force-pushed the fix-otel-span-propagation branch from 5074e3c to 3359e09 Compare August 27, 2025 20:54
@lann lann changed the title outbound-http: Improve test assertion logging trigger-http: Fix otel context propagation Aug 27, 2025
@lann lann requested a review from calebschoepp August 27, 2025 20:54
Copy link
Collaborator

@calebschoepp calebschoepp left a comment

Choose a reason for hiding this comment

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

image

This span was debug intentionally so that it wouldn't pollute the traces developers see. execute_wasi is redundant with execute_wasm_component foo.

Is there another way we could solve this problem?

@lann
Copy link
Collaborator Author

lann commented Aug 27, 2025

We could try removing it, just do in_current_span 🤷

@calebschoepp
Copy link
Collaborator

@lann were you going to try that or were you wanting me to try that?

@lann
Copy link
Collaborator Author

lann commented Aug 29, 2025

Either is fine with me I just might not get to it immediately...

@calebschoepp
Copy link
Collaborator

Tested in_current_span(). We correctly get the only two spans we want. I still need to test if this fixes the issue Andrew was experiencing.

image

@calebschoepp
Copy link
Collaborator

calebschoepp commented Aug 29, 2025

Did some testing and it seems like neither the info span or in_current_span fix actually do anything to help with the issue Andrew was observing of the otel context not being propagated.

Actually I was just testing it wrong. Both ways work so I propose we go forward in_current_span.

@lann
Copy link
Collaborator Author

lann commented Aug 29, 2025

#3260

@lann lann closed this Aug 29, 2025
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.

3 participants