microsoft / azure-container-apps

Roadmap and issues for Azure Container Apps
MIT License
355 stars 27 forks source link

Aspire Dashboard 'freezes' after 10,000 trace entries #1213

Open onionhammer opened 3 days ago

onionhammer commented 3 days ago

This issue is a: (mark with an x)

Issue description

After getting to 10,000 entries, the aspire dashboard ceases to be useful

Steps to reproduce

  1. Enable aspire dashboard
  2. Log traces to it

Expected behavior [What you expected to happen.] Old logs should disappear

Actual behavior [What actually happened.] New logs never appear

Screenshots
image

snehapar9 commented 1 day ago

Thanks for opening this issue @onionhammer! I was able to reproduce what you're seeing in your screenshot by curling the container app endpoint 15,000 times. However, my observation is traces for 15.000 records are populated but the total results found remains at 10,000. It does not seem to increase beyond that even though more traces are occurring. Do you have the same observation?

image

onionhammer commented 1 day ago

No, my dashboard traces have since emptied and now no new traces are appearing at all

snehapar9 commented 1 day ago

@onionhammer do you mind sharing your sub id/managed cluster name to acasupport@microsoft.com? We will take a look.

onionhammer commented 1 day ago

@onionhammer do you mind sharing your sub id/managed cluster name to acasupport@microsoft.com? We will take a look.

Thanks, sent an email

snehapar9 commented 1 day ago

Thanks @onionhammer for providing us this information! We have identified the root cause of the issue.

There was an issue with the otlp authentication because of a race condition while setting the otlp api key. So, even though traces were being transmitted they were not showing up on the dashboard. I performed temporary mitigation steps on your cluster. Can you please confirm you can see traces now?

We will work on getting a long term fix out soon. Thanks again for reporting this. We appreciate it! :)

onionhammer commented 1 day ago

@snehapar9 yep, things are showing again. Thanks!