Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

fix: Spans names

Clémence Lesné45e55bf68789
diff --git a/persistence/icache.py b/persistence/icache.py
index af28473..ef09ad9 100644
--- a/persistence/icache.py
+++ b/persistence/icache.py
@@ -12,7 +12,7 @@ class ICache(ABC):
pass
@abstractmethod
- @tracer.start_as_current_span("cache_aconnect")
+ @tracer.start_as_current_span("cache_aget")
async def aget(self, key: str) -> bytes | None:
pass
diff --git a/persistence/isearch.py b/persistence/isearch.py
index aa66559..08318b8 100644
--- a/persistence/isearch.py
+++ b/persistence/isearch.py
@@ -19,7 +19,7 @@ class ISearch(ABC):
pass
@abstractmethod
- @tracer.start_as_current_span("search_asearch_all")
+ @tracer.start_as_current_span("search_training_asearch_all")
async def training_asearch_all(
self,
lang: str,
diff --git a/persistence/istore.py b/persistence/istore.py
index b0acd21..3e689dd 100644
--- a/persistence/istore.py
+++ b/persistence/istore.py
@@ -30,12 +30,12 @@ class IStore(ABC):
pass
@abstractmethod
- @tracer.start_as_current_span("store_call_adel")
+ @tracer.start_as_current_span("store_call_asearch_one")
async def call_asearch_one(self, phone_number: str) -> CallStateModel | None:
pass
@abstractmethod
- @tracer.start_as_current_span("store_call_adel")
+ @tracer.start_as_current_span("store_call_asearch_all")
async def call_asearch_all(
self,
count: int,