Open lvde0 opened 1 month ago
Is that for Activity or LogRecord?
@cijothomas For LogRecord
The raw Exception
object is stored in LogRecord
, so you can write a LogRecordProcessor
that can read the Exception
, get the additional details from it, and store it as attributes on LogRecord.
(Its not super straightforward, https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry/Logs/LogRecord.cs maybe used as a starting example to make extra attributes)
This is a doc gap as well. If you are not able to get it working, let us know.
What is the question?
Is there any reasonable way of transforming the
exception.message
of an exception record? I have thisProblemDetails
(RFC 7807) exception that carries its information inside theDetail
property and not theMessage
. Would be nice if I could send that to the OTLP endpoint.Additional context
No response