-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require only one of exception.{type,message} for log exceptions (#182)
* otlp: follow semconv for exception fields otel semconv require that at lease one field between exception.message or exception.type to be present on an application exception. To ensure we respect them we default on adding exception.type only if has a value and defaulting exception.message to a constant string when empty and no exception.type is present. * otlp: add exception when message or type is present Trigger exception creation for any log message with either message or type. This aligns to otel semconv requirements for exceptions.
- Loading branch information
Showing
2 changed files
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters