Skip to content

DeepTeam is a framework to red team LLMs and AI agents.

.

Mayank Solankifef53aa002ac
diff --git a/deepteam/telemetry.py b/deepteam/telemetry.py
index 201a14d4..2480e3b0 100644
--- a/deepteam/telemetry.py
+++ b/deepteam/telemetry.py
@@ -134,7 +134,7 @@ IS_RUNNING_IN_JUPYTER = (
def capture_red_teamer_run(vulnerabilities: List[str], attacks: List[str]):
if not telemetry_opt_out():
with tracer.start_as_current_span(f"Invoked redteamer") as span:
- posthog.capture(get_unique_id(), f"Invoked redteamer")
+ posthog.capture(distinct_id=get_unique_id(), event=f"Invoked redteamer")
span.set_attribute("environment", IS_RUNNING_IN_JUPYTER)
span.set_attribute("user.status", get_status())
span.set_attribute("user.unique_id", get_unique_id())
@@ -158,7 +158,7 @@ def capture_red_teamer_run(vulnerabilities: List[str], attacks: List[str]):
def capture_guardrail_run(type: str, guards: List[str]):
if not telemetry_opt_out():
with tracer.start_as_current_span(f"Invoked guardrail") as span:
- posthog.capture(get_unique_id(), f"Invoked guardrail")
+ posthog.capture(distinct_id=get_unique_id(), event=f"Invoked guardrail")
span.set_attribute("environment", IS_RUNNING_IN_JUPYTER)
span.set_attribute("user.status", get_status())
span.set_attribute("user.unique_id", get_unique_id())