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

Calculate display summary for span #394

Merged
merged 3 commits into from
Oct 19, 2023
Merged

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Oct 19, 2023

Fixes #312

image

Note: There isn't a friendly "statement" for database calls. For example, postgres adds the entire SQL string to the span statement. I used the span name instead.

@davidfowl
Copy link
Member

davidfowl commented Oct 19, 2023

@JamesNK Can you also add the semantic conventions for messaging and the db.system? You don't need to show the db.statement.

https://opentelemetry.io/docs/specs/semconv/messaging/messaging-spans/

messaging.system | string | A string identifying the messaging system. | kafka; rabbitmq; rocketmq; activemq; AmazonSQS

@JamesNK
Copy link
Member Author

JamesNK commented Oct 19, 2023

Done. Prefixed with MSG

image

@JamesNK JamesNK force-pushed the jamesnk/span-display-summary branch from ad7b731 to 3ae0c0c Compare October 19, 2023 02:22
@@ -45,7 +45,7 @@

<FluentDataGrid Class="trace-view-grid" ResizableColumns="true" ItemsProvider="@GetData" TGridItem="SpanWaterfallViewModel" RowClass="@GetRowClass" GridTemplateColumns="2fr 6fr">
<TemplateColumn Title="Name">
<div class="col-long-content" title="@($"{context.Span.Source.ApplicationName}: {context.Span.Name}")">
<div class="col-long-content" title="@($"{context.Span.Source.ApplicationName}: {context.GetDisplaySummary()}")">
Copy link
Member

Choose a reason for hiding this comment

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

Is there a tooltip for this thing?

Copy link
Member Author

@JamesNK JamesNK Oct 19, 2023

Choose a reason for hiding this comment

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

Yes. title = tooltip

@davidfowl
Copy link
Member

Ship it!

@JamesNK JamesNK merged commit 7a5ea75 into main Oct 19, 2023
4 checks passed
@JamesNK JamesNK deleted the jamesnk/span-display-summary branch October 19, 2023 05:01
@davidfowl
Copy link
Member

Not seeing the MSG for rabbit MQ in eshop:

image

I think it's because I'm using the Producer span type vs the Client span type. I don't know which one is right but since service bus is working, I'll tweak it.

@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show more disambiguating, relevant key details more prominently in trace viewer
3 participants