elastic / ecs-dotnet

https://www.elastic.co/guide/en/ecs-logging/dotnet/current/setup.html
Apache License 2.0
108 stars 54 forks source link

Update to latest ingest libraries #371

Closed Mpdreamz closed 3 months ago

Mpdreamz commented 3 months ago

This brings in the latest improvements from https://github.com/elastic/elastic-ingest-dotnet

https://github.com/elastic/elastic-ingest-dotnet/pull/53 https://github.com/elastic/elastic-ingest-dotnet/pull/52

Ensure we act way nicer when logging in a very tight loop.

image image

This fixes #341

As noted on: https://github.com/elastic/elastic-ingest-dotnet/pull/54#issuecomment-2045438105

The defaults scenarios still have 'high' gen2 allocations but they are all owned by the TlsOverPerCoreLockedStacksArrayPool backing the System.Channels BoundedBuffer.

Unsure if there is anything we can do to control it.

See e.g this proposal to .NET https://github.com/dotnet/runtime/issues/53895