How to add tags with python logbook?

Hi,

I tried to add tags to my sentry event using logbook, but it doesn’t work.

Here is a snipper of what I did:

import raven
from raven.handlers.logbook import SentryHandler
import logbook

handler = SentryHandler('...')
handler.push_application()
logbook.error("test", extra={'tags': {'test_tag': '1.1'}})

But I see the tags I added as additional data and not as an actual tag:
image

Hi, please try:

logbook.error("test", tags={...})
1 Like

works great, thank you very much!