Skip to content

gh-aw OTel + AWF api-proxy (Copilot BYOK): gen_ai.provider.name is github, and traceparent is not forwarded to Azure AI Gateway #80498

Done

Description

@sudivate

Where: two parts: the gh-aw run span attributes (provider name) and the AWF api-proxy (header forwarding).

What happens

For a Copilot BYOK run against an Azure endpoint (Azure AI Gateway → Azure OpenAI):

  1. The gh-aw run span reports gen_ai.provider.name: github, the same as GitHub-hosted inference. Nothing in the
    standard attributes shows that the run used a BYOK provider.
  2. AWF doesn't forward the W3C traceparent header to the BYOK endpoint. The endpoint's own traces (Azure AI Gateway
    exports OTLP) can't be joined to the run trace: 0 of 8 gateway requests joined. The only remaining join is by time
    window and caller identity.

Why it matters

  • Cost and usage dashboards can't separate GitHub-billed from customer-billed inference.
  • End-to-end tracing stops at the proxy, so slow or failed gateway calls can't be tied to an agent turn.

Suggested fix

  • Set gen_ai.provider.name from the BYOK provider, following GenAI semantic conventions (for example
    azure.ai.openai, or openai for an OpenAI-compatible endpoint), and record the endpoint host (server.address).
  • Forward traceparent and tracestate to the configured BYOK endpoint only, never to other hosts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions