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
6 changes: 4 additions & 2 deletions src/sentry/integrations/slack/unfurl/explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from sentry import analytics, features
from sentry.api import client
from sentry.charts import backend as charts
from sentry.charts.types import ChartType
from sentry.charts.types import ChartSize, ChartType
from sentry.integrations.messaging.metrics import (
MessagingInteractionEvent,
MessagingInteractionType,
Expand All @@ -36,6 +36,8 @@
DEFAULT_PERIOD = "14d"
TOP_N = 5

EXPLORE_CHART_SIZE: ChartSize = {"width": 1600, "height": 1200}


class ExploreDatasetDefaults(TypedDict):
title: str
Expand Down Expand Up @@ -152,7 +154,7 @@ def _unfurl_explore(
chart_data["type"] = chart_type

try:
url = charts.generate_chart(style, chart_data)
url = charts.generate_chart(style, chart_data, size=EXPLORE_CHART_SIZE)
except RuntimeError:
_logger.warning("Failed to generate chart for explore unfurl")
continue
Expand Down
Loading