moonstream/moonstreamapi/moonstreamapi/reporter.py

19 wiersze
415 B
Python
Czysty Zwykły widok Historia

2021-09-01 12:03:44 +00:00
import uuid
from humbug.consent import HumbugConsent
from humbug.report import HumbugReporter
from .settings import HUMBUG_REPORTER_BACKEND_TOKEN
2021-09-01 12:03:44 +00:00
session_id = str(uuid.uuid4())
client_id = "moonstream-backend"
reporter = HumbugReporter(
name="moonstreamapi",
2021-09-01 12:03:44 +00:00
consent=HumbugConsent(True),
client_id=client_id,
session_id=session_id,
bugout_token=HUMBUG_REPORTER_BACKEND_TOKEN,
2021-09-01 12:03:44 +00:00
tags=[],
)