microsoft / microsoft/aspire

Structured logs should interpolate message templates.

Open
#18,824 6 comments 0 reactions 0 assignees View on GitHub
area-dashboard triage:bot-seen
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

When viewing the logs in the dashboard with default settings, the message only shows the message template variable name and not the actual value. To see the actual value one has to open the details and look for the value.

Image

### Describe the solution you'd like

The dashboard should visually just inline the variables into the message. Grafana does the same thing with the default settings.

Image

### Additional context

I'm aware of the setting for the otel export to include the formatted message instead. In my option the default is fine for prod deployments to minimize duplication. But for dev this is only annoying. An alternative would be to set the options via the env config to include the formatted message for project resources.

Contributor guide

Open the contributing guide

Research direction

Start at the dashboard's structured-log rendering entry point and trace how the message template and its variable values are represented, comparing the default view with the details view. Done means the default dashboard view visibly interpolates the variables while retaining the existing option to avoid exporting formatted messages.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.