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
I have enabled Open Telemetry exporter for Logs and have started to notice an increase in this message being reported in random places. There does not really seem to be a pattern and it only throws this error randomly when I have the exported configured.
My config is (configured independently with the same URL and settings)
Tracing Exporter GRPC to Elastic Search APM URL
Logs Exporter GRPC to Elastic Search APM URL
Tracing has been working perfectly for months. Enabling logs recently is working great in elastics apart from this random exception showing up
The most prominent error is this. Other errors are stack traces in areas of the code that is fine.. because we serilog too without issues for years.
System.AggregateException: An error occurred while writing to logger(s). ---> System.ObjectDisposedException: Safe handle has been closed
at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success)
at System.StubHelpers.StubHelpers.SafeHandleAddRef(SafeHandle pHandle, Boolean& success)
at Microsoft.Win32.Win32Native.SetEvent(SafeWaitHandle handle)
at System.Threading.EventWaitHandle.Set()
at OpenTelemetry.BatchExportProcessor`1.OnExport(T data)
at OpenTelemetry.BatchLogRecordExportProcessor.OnEnd(LogRecord data)
at OpenTelemetry.Logs.OpenTelemetryLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|12_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state)
--- End of inner exception stack trace ---
at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions)
at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args)
at Airsweb.Common.AWSClients.Proxies.AWSS3BucketCreator.<ContainerExists>d__6.MoveNext()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have enabled Open Telemetry exporter for Logs and have started to notice an increase in this message being reported in random places. There does not really seem to be a pattern and it only throws this error randomly when I have the exported configured.
My config is (configured independently with the same URL and settings)
Tracing has been working perfectly for months. Enabling logs recently is working great in elastics apart from this random exception showing up
The most prominent error is this. Other errors are stack traces in areas of the code that is fine.. because we serilog too without issues for years.
Context on the application is
Beta Was this translation helpful? Give feedback.
All reactions