diff --git a/public/fi_verify_voice.py b/public/fi_verify_voice.py index 603dd2a4..66973548 100644 --- a/public/fi_verify_voice.py +++ b/public/fi_verify_voice.py @@ -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"} diff --git a/src/pages/docs/cookbook/quickstart/instrument-and-verify-voice.mdx b/src/pages/docs/cookbook/quickstart/instrument-and-verify-voice.mdx index a9263c3d..72df090c 100644 --- a/src/pages/docs/cookbook/quickstart/instrument-and-verify-voice.mdx +++ b/src/pages/docs/cookbook/quickstart/instrument-and-verify-voice.mdx @@ -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