Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: add instance_id to telemetry request parameters
  • Loading branch information
itxashancode committed Apr 18, 2026
commit 7ed31d0bafc0533eb08874065408fa61c122e944
14 changes: 12 additions & 2 deletions telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,12 @@ def _perform_handshake(self):
message = f"{ts}.{nonce}.{body_hash}"

sig = _hmac_sha256(self._secret, message)
params = {"ts": ts, "nonce": nonce, "sig": sig}
params = {
"ts": ts,
"nonce": nonce,
"sig": sig,
"instance_id": self.instance_id
}

try:
resp = _requests.post(
Expand Down Expand Up @@ -238,7 +243,12 @@ def _send(self, total_prs_created: int, session_prs: int, event_type: str, force
message = f"{ts}.{nonce}.{body_hash}"

sig = _hmac_sha256(self._secret, message)
params = {"ts": ts, "nonce": nonce, "sig": sig}
params = {
"ts": ts,
"nonce": nonce,
"sig": sig,
"instance_id": self.instance_id
}
except Exception as exc:
logger.debug(f"Telemetry build error: {exc}")
return
Expand Down