Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(error-tracking): enable elixir issue auto-merge (#128936)

Hugues Pouillotb6c51210fd1c
diff --git a/products/error_tracking/backend/temporal/lifecycle/issue_created/activities.py b/products/error_tracking/backend/temporal/lifecycle/issue_created/activities.py
index 405cdd12e7dc..fa49ab6add4f 100644
--- a/products/error_tracking/backend/temporal/lifecycle/issue_created/activities.py
+++ b/products/error_tracking/backend/temporal/lifecycle/issue_created/activities.py
@@ -64,7 +64,6 @@ logger = structlog.get_logger(__name__)
EMBEDDING_MODEL = "text-embedding-3-large-3072"
EMBEDDING_RENDERING = "type_message_and_stack"
EMBEDDING_MAX_TOKENS = 7000
-EMBEDDING_DISABLED_LIBRARIES = {"posthog-elixir"}
SEVERITY_INFERENCE_MAX_TOKENS = 2000
ERROR_TRACKING_SEVERITY_INFERENCE_OUTCOMES = Counter(
@@ -91,9 +90,6 @@ def _embedding_skip_reason(event_properties: dict[str, object]) -> str | None:
if record_type == "custom":
return "custom_grouping_rule"
- library = event_properties.get("$lib")
- if isinstance(library, str) and library in EMBEDDING_DISABLED_LIBRARIES:
- return "disabled_sdk"
return None
diff --git a/products/error_tracking/backend/temporal/lifecycle/issue_created/test/test_workflow.py b/products/error_tracking/backend/temporal/lifecycle/issue_created/test/test_workflow.py
index 878d33734cad..5fed8c428214 100644
--- a/products/error_tracking/backend/temporal/lifecycle/issue_created/test/test_workflow.py
+++ b/products/error_tracking/backend/temporal/lifecycle/issue_created/test/test_workflow.py
@@ -219,14 +219,17 @@ def test_embedding_failure_classification_and_capture(
@patch("products.error_tracking.backend.temporal.lifecycle.issue_created.activities.fetch_event_properties")
@patch("products.error_tracking.backend.temporal.lifecycle.issue_created.activities.Team.objects.get")
@patch("products.error_tracking.backend.temporal.lifecycle.issue_created.activities.generate_embedding")
-def test_embedding_hands_the_judge_its_text_before_clickhouse_has_it(
+def test_embedding_hands_elixir_issue_to_judge_before_clickhouse_has_it(
generate_embedding: MagicMock,
get_team: MagicMock,
fetch_event_properties: MagicMock,
render_stacktrace: MagicMock,
) -> None:
get_team.return_value.organization.is_ai_data_processing_approved = True
- fetch_event_properties.return_value = {"$exception_list": [{"type": "TypeError", "value": "boom"}]}
+ fetch_event_properties.return_value = {
+ "$lib": "posthog-elixir",
+ "$exception_list": [{"type": "TypeError", "value": "boom"}],
+ }
render_stacktrace.return_value = "TypeError: boom"
generate_embedding.return_value = MagicMock(embedding=[0.1, 0.2])