From 095f11fe21f93afedf0133fbf07f8002e1ba00b1 Mon Sep 17 00:00:00 2001 From: Vaghinak Basentsyan Date: Wed, 11 Feb 2026 11:20:23 +0400 Subject: [PATCH] Add mixpanel env field --- src/superannotate/lib/app/interface/base_interface.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/superannotate/lib/app/interface/base_interface.py b/src/superannotate/lib/app/interface/base_interface.py index db7e353a..699b74a2 100644 --- a/src/superannotate/lib/app/interface/base_interface.py +++ b/src/superannotate/lib/app/interface/base_interface.py @@ -4,6 +4,7 @@ import platform import sys import typing +from functools import lru_cache from inspect import signature from pathlib import Path from types import FunctionType @@ -128,6 +129,7 @@ def get_mp_instance(self) -> Mixpanel: return Mixpanel(mp_token) @staticmethod + @lru_cache def get_default_payload(team_name, user_email): return { "SDK": True, @@ -136,6 +138,7 @@ def get_default_payload(team_name, user_email): "Version": os.environ["sa_version"], "Python version": platform.python_version(), "Python interpreter type": platform.python_implementation(), + "Env": os.environ.get("SA_ENV", "N/A"), } def __init__(self, function):