Open CodeBlanch opened 5 months ago
That method you are seeing seems to be spawned when a change token matches a path reported by the underlying FileSystemWatcher. I wonder if its possible that the PhysicalFilesWatcher is being disposed before the thread finish execution, not sure if that would cause problems. What's the error message? Do you have a consoleapp repro?
I'm working with a user reporting a bug in OpenTelemetry .NET. It seems some file system change is triggering an
IConfiguration
reload which is manifesting a bug in OpenTelemetry causing some resources to be created (background threads) which aren't ever used or cleaned up. We're fixing that bug in OpenTelemetry but so far we haven't been able to figure out why that configuration reload is firing.In the call stack we see:
Host.CreateDefaultBuilder(args)
to create their host.appSettings.json
files.I'm wondering if we could add some
EventSource
info/verbose logging insidePhysicalFilesWatcher
to help troubleshoot issues in the future.OTel issue: https://github.com/open-telemetry/opentelemetry-dotnet/issues/5513
More of the stack trace
``` ...user portion removed... Microsoft.Extensions.Options.dll!Microsoft.Extensions.Options.ConfigureNamedOptions/cc @tarekgh