From 37781d11aade805f392c7e2d866467bfa6702b8b Mon Sep 17 00:00:00 2001 From: Jeeho Lee Date: Mon, 26 Oct 2026 05:31:58 +0000 Subject: [PATCH] docs(telemetry): disable all content paths in the admin lock recipe Set the OpenTelemetry capture policy alongside the legacy ADK knob, so an inherited capture setting cannot defeat the documented opt-out. AI-assisted with OpenAI Codex. --- docs/guides/telemetry/telemetry_config/index.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/guides/telemetry/telemetry_config/index.md b/docs/guides/telemetry/telemetry_config/index.md index b35f3516934..2e3bcdf7db1 100644 --- a/docs/guides/telemetry/telemetry_config/index.md +++ b/docs/guides/telemetry/telemetry_config/index.md @@ -288,17 +288,21 @@ defeating the first. ### Lock the policy against application code A platform team that has decided prompt content must never leave the process -cannot rely on every agent author passing the right `RunConfig`. Set both +cannot rely on every agent author passing the right `RunConfig`. Set all three variables in the deployment environment: ```bash export ADK_CAPTURE_MESSAGE_CONTENT_IN_SPANS=false +export OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=NO_CONTENT export ADK_TELEMETRY_IGNORE_RUN_CONFIG=1 ``` -The first sets the policy, the second makes `TelemetryConfig` ignore the -per-request fields, so an application passing -`capture_message_content=SPAN_AND_EVENT` gets `NO_CONTENT` anyway. +The first disables content on legacy ADK spans, the second disables it on +GenAI log records and experimental spans, and the third makes +`TelemetryConfig` ignore the per-request fields. An application passing +`capture_message_content=SPAN_AND_EVENT` therefore still gets `NO_CONTENT`. +The admin lock alone does not disable capture: without the second setting, +an inherited OpenTelemetry content-capture variable can still enable it. ### Turn content on for one run