-
Notifications
You must be signed in to change notification settings - Fork 475
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
Conversation
|
||
namespace Aspire.Dashboard.Otlp.Storage; | ||
|
||
internal sealed class CircularBuffer<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable |
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.
@stephentoub Can/Should we use ConcurrentQueueSegment?
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.
Items are inserted with an order and can arrive out of order, so inserting at a position is required.
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.
Got it.
9c1c1e1
to
583b410
Compare
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
.