sentry-rust
sentry-rust copied to clipboard
logentry should support logentry object based on docs
trafficstars
relevant docs: https://develop.sentry.dev/sdk/event-payloads/types/#logentry
Environment
sentry-cli --version
sentry-cli 2.5.0
bug example:
{
"logentry" : {
"message" : "some unformatted message {var}",
"params" : {"var" : "hey there"}
}
}
bonus bug:
{
"logentry" : {
"formatted" : "this errors saying 'message' is missing"
}
}
working example:
{
"logentry" : {
"message" : "This is a warning: %s",
"params" : [ "warning" ]
}
}
Actual Result
error: invalid type: map, expected a sequence at line 4 column 18
I made a mistake on this issue when i posted, but since then i've been using the official schema to validate my payloads, and i came across another error related to logentry, so i updated to reflect the new error i found.