dotnet / aspire

An opinionated, cloud ready stack for building observable, production ready, distributed applications in .NET
https://learn.microsoft.com/dotnet/aspire
MIT License
3.8k stars 450 forks source link

[AzureTools][Aspire] There are two sets of log times for a container when F5ing an Aspire starter project with "Use Redis for caching (requires Docker) checked #3642

Open v-mengwe opened 6 months ago

v-mengwe commented 6 months ago

Clean machine: Win11 x64 23h2 ENU VS Version: VS 17.10.0 Preview 4.0 [34811.107.d17.10] Aspire Version: 8.0.0-preview.5.24201.12 Apply NuGet Feeds Podman Desktop: 1.9.1 Podman CLI: 5.0.1

REPRO STEPS:

  1. Create an Aspire starter project with "Use Redis for caching (requires Docker)" checked.
  2. F5.
  3. In the dashboard, click "View" under the "Logs" for the container.

Expect: There is only one set of log times. image

Actual: There are two sets of log times. Running with Podman Desktop: image Running with Docker Desktop: image

mitchdenny commented 6 months ago

The timestamp on the left is when we received the event. The text on the right is from the console outputs. This is by design.

Arguably we could have an option on the view to not show our timestamps in Aspire.

/cc @JamesNK @drewnoakes

v-mengwe commented 6 months ago

Verified on the 17.10.0 Preview 6.0 [34823.181.d17.10] with Aspire 8.0.0-preview.7.24223.12, this issue also reproduces for other samples:

  1. "mysql" container of DatabaseContainers sample
  2. "grafana", "prometheus" containers of MetricsApp sample
  3. "basketcache" container of AspireShop sample
  4. "voting-redis" container of OrleansVoting sample