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
We updated self hosted sentry to version 24.8.0 and after that logging integration do not render logging message. So we have a template in a sentry web-ui and webhook call instead of rendered message. For exampe:
logger.error("task for news source %s returned empty result %s", news_source, result)
logger.error(f"[debug] task for news source {news_source} returned empty result {result}")
This leads to 2 messages in sentry:
task for news source %s returned empty result %s
[debug] task for news source binance_api_changelog_spot returned empty result None
So, only force-rendered via f-string message is correct. Not sure if it is relative to sentry python sdk, or self-hosted sentry itself. Previous version 23.x.x was correct for this. More to say, some messages are rendered correctly. For example with %d. In the example above news_source is StrEnum and result is None.
Expected Result
Actual Result
The text was updated successfully, but these errors were encountered:
@pohmelie Would you be able to post the entire JSON? That would help me determine whether this problem originates in the SDK or the self-hosted backend.
FWIW, I was not able to reproduce this with the latest Sentry SDK version and SaaS Sentry.
How do you use Sentry?
Self-hosted/on-premise
Version
2.9.0
Steps to Reproduce
We updated self hosted sentry to version 24.8.0 and after that logging integration do not render logging message. So we have a template in a sentry web-ui and webhook call instead of rendered message. For exampe:
This leads to 2 messages in sentry:
task for news source %s returned empty result %s
[debug] task for news source binance_api_changelog_spot returned empty result None
So, only force-rendered via f-string message is correct. Not sure if it is relative to sentry python sdk, or self-hosted sentry itself. Previous version 23.x.x was correct for this. More to say, some messages are rendered correctly. For example with
%d
. In the example abovenews_source
isStrEnum
andresult
isNone
.Expected Result
Actual Result
The text was updated successfully, but these errors were encountered: