Skip to content

Docs: clarify Agent Host OTel capture variables and precedence #10702

In review

Description

The OTel monitoring guide documents COPILOT_OTEL_CAPTURE_CONTENT for the Local harness, but does not explain the GenAI capture variables used by the Copilot Agent Host runtime.

Configuration Runtime behavior
OTEL_INSTRUMENTATION_GENAI_CAPTURE_CONTENT Accepts NO_CONTENT, SPAN_ONLY, EVENT_ONLY, or SPAN_AND_EVENT; invalid values such as true disable content capture
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true Legacy boolean fallback, used when the enum variable is unset
chat.agentHost.otel.captureContent=true VS Code sets the legacy boolean; an inherited enum variable still takes precedence

For example, this shell configuration disables content capture despite the boolean being enabled:

OTEL_INSTRUMENTATION_GENAI_CAPTURE_CONTENT=true
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true

Please distinguish the Local and Agent Host configuration paths and document accepted values and precedence, including this conflicting-variable example. The enum behavior follows the upstream GenAI specification; this is a documentation request, not a request to change runtime parsing.

VS Code mapping: Agent Host OTel configuration.

🤖 Posted by GitHub Copilot on Harald's behalf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions