Repository navigation
Conversation
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
x-request-idover the SSE/bodyidwhen recordinggen_ai.response.id.response.idfrom/responsesevents is still recorded, includingresp_...IDs.Why
The Runtime path using
Agent(model_name=...)goes through LiteLLM chat completions rather than Ark Responses API. Ark chat completions may expose the traceable provider identifier in the response headerx-request-id, while the SSE/bodyidcan use a different hex-like format.APMPlus comparison showed:
gen_ai.response.id.gen_ai.response.idoncall_llm/model_request.x-request-id.Verification
uv run --extra dev pre-commit run --all-filesuv run --extra dev pytest tests/models/test_model_response_id.py -q86 passeduv run --extra dev pytest tests/test_adk_tracing_integration.py tests/test_model_tpot.py -q82 passedLive E2E
Deployed real AgentKit Runtimes and invoked the streaming
runner.run_async(..., StreamingMode.SSE)path.veadk-python==1.1.28gen_ai.response.id1.1.27.dev25+g4afd3be59gen_ai.response.idoncall_llmandmodel_requestAlso verified Ark
/api/v3/responsesdirectly returnsresp_...IDs inresponse.id, while the currentAgent(model_name=...)Runtime path uses chat completions and returns the hex-like body id unless Arkx-request-idis preferred.