-
Notifications
You must be signed in to change notification settings - Fork 507
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
Improve page titles by adding (resource) or (trace name) where appropriate. #6970
base: main
Are you sure you want to change the base?
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
<PageTitle><ApplicationName ResourceName="@nameof(Dashboard.Resources.TraceDetail.TraceDetailPageTitle)" Loc="@Loc" /></PageTitle> | ||
<PageTitle> | ||
<ApplicationName | ||
AdditionalText="@(_trace?.RootSpan?.Name)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On line 32 there is a header displayed for the page. Move creating that title to a method and reuse here and there.
<PageTitle><ApplicationName ResourceName="@nameof(Dashboard.Resources.Metrics.MetricsPageTitle)" Loc="@Loc" /></PageTitle> | ||
<PageTitle> | ||
<ApplicationName | ||
AdditionalText="@PageViewModel.SelectedApplication.Id?.ReplicaSetName" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is also an instrumented selected then the additonal text can combine both
e.g. just app: frontend
, instrumented selected: frontend - http.client.request.duration
} | ||
|
||
_pageTitle = AdditionalText is null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_pageTitle = AdditionalText is null | |
_pageTitle = string.IsNullOrEmpty(AdditionalText) |
@@ -12,6 +12,9 @@ public sealed partial class ApplicationName : ComponentBase, IDisposable | |||
{ | |||
private CancellationTokenSource? _disposalCts; | |||
|
|||
[Parameter] | |||
public string? AdditionalText { get; init; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameters in this control should be set, not init. Fix this one and the other parameters
Description
Updates console log/traces/metrics/structured logs page titles to include the resource, replica set, or trace span name where set, to show more information.
Also renames
ApplicationName
toAspirePageTitle
because the component allows for additional text alongside the application name.Fixes #5672
Checklist
<remarks />
and<code />
elements on your triple slash comments?breaking-change
template):doc-idea
template):Microsoft Reviewers: Open in CodeFlow