diff --git a/src/sentry/integrations/slack/message_builder/image_block_builder.py b/src/sentry/integrations/slack/message_builder/image_block_builder.py index 86ac399c69e948..25ba0eab1cf83b 100644 --- a/src/sentry/integrations/slack/message_builder/image_block_builder.py +++ b/src/sentry/integrations/slack/message_builder/image_block_builder.py @@ -122,7 +122,6 @@ def _build_function_regression_image_block(self) -> SlackBlock | None: "dataset": "profileFunctions", "referrer": Referrer.API_ALERTS_CHARTCUTERIE, "project": self.group.project.id, - "environment": event.get_environment().name, "start": period["start"].strftime("%Y-%m-%d %H:%M:%S"), "end": period["end"].strftime("%Y-%m-%d %H:%M:%S"), "yAxis": ["p95()"], @@ -130,6 +129,7 @@ def _build_function_regression_image_block(self) -> SlackBlock | None: }, ) + # Convert the aggregate range from nanoseconds to milliseconds evidence_data = { "aggregate_range_1": event.occurrence.evidence_data["aggregate_range_1"] / 1e6, "aggregate_range_2": event.occurrence.evidence_data["aggregate_range_2"] / 1e6,