Co-authored-by: Clément Drouin <clement.drouin@mistral.ai>
Co-authored-by: Gauthier Guinet <43207538+Gguinet@users.noreply.github.com>
Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com>
Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai>
Co-authored-by: Stanislas <stanislas.lange@mistral.ai>
Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Mathias Gesbert 2026-06-08 14:59:41 +02:00 committed by GitHub
parent 3f8487f761
commit 702d0f412e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
51 changed files with 2446 additions and 502 deletions

View file

@ -15,6 +15,7 @@ from vibe.core.logger import logger
from vibe.core.telemetry.build_metadata import build_base_metadata
from vibe.core.telemetry.types import (
AgentEntrypoint,
AttachmentKind,
EntrypointMetadata,
TelemetryCallType,
TeleportCompletedPayload,
@ -303,6 +304,7 @@ class TelemetryClient:
nb_prompt_chars: int,
call_type: TelemetryCallType,
message_id: str | None = None,
attachment_counts: dict[AttachmentKind, int] | None = None,
) -> None:
payload = {
"model": model,
@ -312,6 +314,11 @@ class TelemetryClient:
"call_source": "vibe_code",
"call_type": call_type,
"message_id": message_id,
"attachment_counts": {
kind.value: count
for kind, count in (attachment_counts or {}).items()
if count > 0
},
}
self.send_telemetry_event("vibe.request_sent", payload)