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

Limit log and trace telemetry #470

Merged
merged 8 commits into from
Oct 25, 2023
Merged

Limit log and trace telemetry #470

merged 8 commits into from
Oct 25, 2023

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Oct 24, 2023

Fixes #419

Limit logs and traces to 10,000 items. Not configurable, but would be simple to add in the future.

TODO: Read value from IConfiguration.


namespace Aspire.Dashboard.Otlp.Storage;

internal sealed class CircularBuffer<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
Copy link
Member

@davidfowl davidfowl Oct 24, 2023

Choose a reason for hiding this comment

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

@stephentoub Can/Should we use ConcurrentQueueSegment?

Copy link
Member Author

Choose a reason for hiding this comment

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

Items are inserted with an order and can arrive out of order, so inserting at a position is required.

Copy link
Member

Choose a reason for hiding this comment

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

Got it.

@JamesNK JamesNK force-pushed the jamesnk/telemetry-limit-real branch from 9c1c1e1 to 583b410 Compare October 25, 2023 05:36
@JamesNK JamesNK enabled auto-merge (squash) October 25, 2023 05:47
@JamesNK JamesNK merged commit 5d8f68c into main Oct 25, 2023
4 checks passed
@JamesNK JamesNK deleted the jamesnk/telemetry-limit-real branch October 25, 2023 06:08
@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.

Limit in memory telemetry storage by the dashboard
3 participants