How to add tags with python logbook?


#1

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


#2

Hi, please try:

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

#3

works great, thank you very much!