Is there a way to inform the user of the SDK if, and which LogRecord failed to be sent to the collector for audit logging purposes? #6140
-
Hello, the company I work for uses OTEL for traces, and metrics, and we're starting the migration of our logging infrastructure. I develop internal libraries that wraps the .NET SDKs (to define company-wide behaviour) and are used by our engineering of teams. Currently, I'm in the process of moving our audit logs library to use OTEL. I tried to explore several options to address my requirement:
Given these constraints, is there any option that I'm missing on my analysis? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Are you trying to see if |
Beta Was this translation helpful? Give feedback.
Yes exactly. I am not clear what is the expected outcome then? Logging Libraries don't returns status or throw exceptions, so end users who use this API to report Audit Logs will not know if the Audit Log they tried to emit was successful or not.
See the related discussion in Spec : open-telemetry/opentelemetry-specification#4377