Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/sentry/conduit/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from uuid import uuid4

import requests
import sentry_sdk
from django.conf import settings
from google.protobuf.struct_pb2 import Struct
from google.protobuf.timestamp_pb2 import Timestamp
Expand Down Expand Up @@ -36,7 +37,11 @@
)
def stream_demo_data(org_id: int, channel_id: str) -> None:
"""Asynchronously stream data to Conduit."""
token = generate_jwt(subject="demo")
try:
token = generate_jwt(subject="demo")
except ValueError as e:
sentry_sdk.capture_exception(e, level="warning")
return
logger.info(
"conduit.stream_demo_data.started", extra={"org_id": org_id, "channel_id": channel_id}
)
Expand Down
Loading