Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 4 additions & 1 deletion public/fi_verify_voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ def send(key, secret, project, auth=True, slash=False):
now = int(time.time())
attrs = [{"key": "fi.span.kind", "value": {"stringValue": "CONVERSATION"}},
{"key": "call.duration", "value": {"doubleValue": 1.0}}]
span = {"traceId": "4bf92f3577b34da6a3ce929d0e0e4736", "spanId": "00f067aa0ba902b7",
# Fresh ids per send. A fixed pair collides with any other probe that reuses it,
# and the store replaces on (project, hour, trace_id, span_id): one probe silently
# overwrites the other and only one row survives in the project.
span = {"traceId": os.urandom(16).hex(), "spanId": os.urandom(8).hex(),
"name": "futureagi.voice.preflight", "kind": 1, "attributes": attrs,
"startTimeUnixNano": str(now) + "000000000",
"endTimeUnixNano": str(now + 1) + "000000000"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Then the checker. One file, pure standard library, nothing to install, and Step
mkdir -p observability/futureagi
curl -fsSL https://docs.futureagi.com/fi_verify_voice.py -o observability/futureagi/fi_verify_voice.py
shasum -a 256 observability/futureagi/fi_verify_voice.py
# c586f4bc001b8d9b7ea27cedc893c111c32eda986cc137dda98f06b525c320b6
# 9e487b4e8eb00c1adfb57e2cfdda182005cb8f99d85e909e6531d7730380be2f

touch observability/__init__.py observability/futureagi/__init__.py
echo ".fi_verify/" >> .gitignore
Expand Down
Loading