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
fail: Program[0]
"You divided by 0
System.DivideByZeroException: Attempted to divide by zero.
at Program.<<Main>$>g__HandleRollDice|0_4(ILogger`1 logger, String player) in C:\...\Program.cs:line 85
LogRecord.Timestamp: 2024-02-06T07:57:44.2418249Z
LogRecord.TraceId: d73bd4a40d4c4ca764ac87b0aa392b04
LogRecord.SpanId: b735f0c40f6c7243
LogRecord.TraceFlags: Recorded
LogRecord.CategoryName: Program
LogRecord.Severity: Error
LogRecord.SeverityText: Error
LogRecord.Body: "You divided by 0
LogRecord.Attributes (Key:Value):
OriginalFormat (a.k.a Body): Y"You divided by 0
LogRecord.Exception: System.DivideByZeroException: Attempted to divide by zero.
I do not see anywhere those attributes?
Furthermore, the same beahaviour appears with OTel Exporter too:
From the next release of OTLP Exporter onwards, this will happen by default. Else, use OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EXCEPTION_LOG_ATTRIBUTES to turn it on.
Why standard exception fields like exception.message and exception.stacktrace. are NOT visible in the following output?
I have the ILogger configured for using OTel.
When I log this error on Console:
I get on Console:
I do not see anywhere those attributes?
Furthermore, the same beahaviour appears with OTel Exporter too:
The text was updated successfully, but these errors were encountered: