Skip to content

oc/exporter: Include the name of a span in the message#2470

Merged
ambarve merged 1 commit into
microsoft:mainfrom
micromaomao:tingmao/span-message
Sep 16, 2025
Merged

oc/exporter: Include the name of a span in the message#2470
ambarve merged 1 commit into
microsoft:mainfrom
micromaomao:tingmao/span-message

Conversation

@micromaomao
Copy link
Copy Markdown
Member

This makes it easier to read the logs and see which spans are there, especially since WPA sorts the field by its name, independently for each row.

see:

image

versus

image

I've discussed with Maksim. His worry is that DRIs might already be filtering out rows based on this string, but I think this is still worth considering.

@micromaomao micromaomao requested a review from a team as a code owner July 8, 2025 18:57
Copy link
Copy Markdown
Contributor

@anmaxvl anmaxvl left a comment

Choose a reason for hiding this comment

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

lgtm. checked with D&I and they also in favor of this change. thanks!

@micromaomao micromaomao force-pushed the tingmao/span-message branch from ce80c7e to b3c0462 Compare July 15, 2025 16:51
@micromaomao
Copy link
Copy Markdown
Member Author

No change rebase as requested by @anmaxvl

> git range-diff origin/main fork/tingmao/span-message HEAD
1:  ce80c7e80 = 1:  b3c046291 oc/exporter: Include the name of a span in the message

@micromaomao
Copy link
Copy Markdown
Member Author

@anmaxvl can we merge this?

@micromaomao micromaomao force-pushed the tingmao/span-message branch from b3c0462 to ec33da1 Compare August 13, 2025 18:13
Copy link
Copy Markdown
Contributor

@jterry75 jterry75 left a comment

Choose a reason for hiding this comment

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

I'm worried this will break queries. Do we ever use type Span .Name -eq Thing in queries?

@micromaomao
Copy link
Copy Markdown
Member Author

I'm worried this will break queries. Do we ever use type Span .Name -eq Thing in queries?

This doesn't change the Name of a span log, it only changes the log body itself, which previously was always "Span".

This makes it easier to read the logs and see which spans are there, especially
since WPA sorts the field by its name, independently for each row.

Signed-off-by: Tingmao Wang <tingmaowang@microsoft.com>
@ambarve ambarve merged commit fa6c175 into microsoft:main Sep 16, 2025
69 of 77 checks passed
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.

5 participants