-
-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot remove breadcrumbs from huge envelope when config.async #1757
Comments
Thanks for the quick response! I'm developing rails app that uses It is very clear that the I will detailed comment to The active maintenance of the sentry-ruby gem is very helpful, thank you. |
hi @st0012 is there any way to remove log ?? [Transport] Sending envelope with items [transaction] 29382938kjaskjdkajkdjasd to Sentry |
You can always customize the SDK's log level by: config.logger = Logger.new(STDOUT)
config.logger.level = Logger::WARN |
@st0012 sorry for bringing this back to life, but i found that making this change in the config block for sentry would update the overall apps logger to WARN, which means we loose things like route logs. is there anyway to tell sentry not to notify that it is sending the envelopes besides at the logger level specifically? |
Issue Description
sentry-ruby 5.2.0 introduce envelope size check logic.
#1747
This logic check envelope size, and remove breadcrumbs if payload is too huge.
https://github.com/getsentry/sentry-ruby/blob/5.2.0/sentry-ruby/lib/sentry/transport.rb#L75-L78
But this breadcrumbs remove process does not work with
config.async
option.item.payload
has JSON-like string key whenconfig.async
is enabled.https://github.com/getsentry/sentry-ruby/blob/5.2.0/sentry-ruby/lib/sentry/client.rb#L166-L168
Reproduction Steps
docker run --rm -p 8080:80 ealen/echo-server
Expected Behavior
Removing breadcrumbs logic work fine when
config.async
is enabled or not.Actual Behavior
Removing breadcrumbs logic does not work when
config.async
is enabled.Ruby Version
2.7.4
SDK Version
5.2.0
Integration and Its Version
No response
Sentry Config
No response
The text was updated successfully, but these errors were encountered: