You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
List of all OpenTelemetry NuGet
packages and version that you are
using (e.g. OpenTelemetry 1.0.2):
OpenTelemetry.Exporter.InMemory 1.6.0-rc.1
OpenTelemetry.Api 1.6.0-rc.1
OpenTelemetry.Extensions.Hosting 1.6.0-rc.1
OpenTelemetry.Instrumentation.Process 0.5.0-beta.3
OpenTelemetry.Instrumentation.Runtime 1.5.0
OpenTelemetry.SemanticConventions 1.0.0-rc9.9
OpenTelemetry.Exporter.OpenTelemetryProtocol 1.6.0-rc.1
Runtime version (e.g. net462, net48, netcoreapp3.1, net6.0 etc. You can
find this information from the *.csproj file):
net7.0
Symptom
In BatchExportProcessor, a thread is created and started in the constructor. That thread is a while(true) that never stop while the BatchExportProcessor exists.
when configuring otel for logging, if you give a Configuration Object that is refreshed when the config changes, the full config is re run creating more and more threads
Bug Report
List of all OpenTelemetry NuGet
packages and version that you are
using (e.g.
OpenTelemetry 1.0.2
):OpenTelemetry.Exporter.InMemory 1.6.0-rc.1
OpenTelemetry.Api 1.6.0-rc.1
OpenTelemetry.Extensions.Hosting 1.6.0-rc.1
OpenTelemetry.Instrumentation.Process 0.5.0-beta.3
OpenTelemetry.Instrumentation.Runtime 1.5.0
OpenTelemetry.SemanticConventions 1.0.0-rc9.9
OpenTelemetry.Exporter.OpenTelemetryProtocol 1.6.0-rc.1
Runtime version (e.g.
net462
,net48
,netcoreapp3.1
,net6.0
etc. You canfind this information from the
*.csproj
file):net7.0
Symptom
In BatchExportProcessor, a thread is created and started in the constructor. That thread is a while(true) that never stop while the BatchExportProcessor exists.
when configuring otel for logging, if you give a Configuration Object that is refreshed when the config changes, the full config is re run creating more and more threads
so to be more clear in the startup:
If the otelConfiguration object is refreshed (because let's say we did change the content of the appsettings.json), then a new thread is created
What is the expected behavior?
Only one thread for the BatchEportProcessor
What is the actual behavior?
the more the configuration is refreshed, the more thread are created
Reproduce
https://github.com/pitming/otelThreadLeak
We will close this issue if:
projects, so don't point us to such, please.
Additional Context
Here you see the amount of thread growing and growing
The text was updated successfully, but these errors were encountered: