rollbar-gem icon indicating copy to clipboard operation
rollbar-gem copied to clipboard

sidekiq + async_json_payload is not set

Open netwire88 opened this issue 3 years ago • 3 comments

Hi, I'm using rollbar 3.3 and sidekiq 6.3.1, when I enable config.use_sidekiq in rollbar.rb, I don't think rollbar is using the rollbar queue for sending error messages. I also noticed this:

"configured_options": "not serialized when async_json_payload is not set"

Do I need to enable config.async_json_payload as well?

netwire88 avatar Mar 18 '22 03:03 netwire88

I haven't seen an issue with the rollbar queue and have tested with 6.2.2. The queue needs to exist on sidekiq, e.g.

bundle exec sidekiq -q rollbar

config.async_json_payload is optional. Performance is improved when it is set because the payload is serialized/deserialized fewer times. It defaults to unset for back compatibility -- Existing plugins may expect to see a ruby object rather than a JSON string.

waltjones avatar Mar 30 '22 13:03 waltjones

Thanks @waltjones , how do I know if config.use_sidekiq and config.async_json_payload = true is working? I don't see anything in the rollbar Sidekiq queue but errors are still being logged to Rollbar.

netwire88 avatar Mar 31 '22 14:03 netwire88

The way I've done it is to watch the sidekiq log. I think sidekiq only logs to stdout, so you need to watch in the console or redirect it to a file. Also I don't recall whether the default log level is noisy enough.

waltjones avatar Mar 31 '22 14:03 waltjones

Closing. Reopen if this still needs attention.

waltjones avatar Jan 04 '23 20:01 waltjones