Repository navigation
docs(sample): bilingual README for the observability sample (zh/en) - #76
Merged
zhangwenjun-huawei merged 8 commits intoOct 23, 2026
Merged
Conversation
Rewrite the observability-sample README as a pair of docs (README.md in English, README-zh.md in Chinese) in the same friendly style as the container README: business-first scenario walkthroughs (native / a2at / negotiation with the real per-round timing), a quick start that works copy-paste, an optional Langfuse section, a plain-language cheat sheet of what gets recorded, and a compact environment-variable table. The deep technical details (span names, handler caveat, verification helpers) move to a short Notes section. Also register the sample in the container READMEs (directory tree + use-case table). Signed-off-by: z00930736 <zoujie5@huawei.com>
…ple doc updates - decorator detects the V2 shape (_active_task_registry) and rebuilds the ActiveTaskRegistry with the decorated executor/push sender (D9): per-event and push spans now work on the OFFICIAL default handler - push sender wrap: install the _dispatch_notification wrapper in the V2 branch too (V2 pushes from the event pump via send_notification -> dispatch) - send_notification forwards without a second span when the dispatch wrapper handles fanout (dedup); _warn_if_v2_handler replaced by the adaptive INFO - sample server + E2E migrate to the official DefaultRequestHandler (V2 protocol: executors enqueue the initial Task snapshot first); E2E updated for the +initial-task-snapshot event and task-kind event spans - includes the continued review work: payload redaction order, config gates, log/trace plumbing adjustments and their tests Signed-off-by: z00930736 <zoujie5@huawei.com>
…ult handler The Notes section now reflects the D9 behavior: the sample uses the official default DefaultRequestHandler and the decorator auto-adapts to the V2 shape (registry rebuilt with decorated collaborators). The container README gains a Use Case section for the sample. Signed-off-by: z00930736 <zoujie5@huawei.com>
khunj
added a commit
to khunj/a2a-t-sdk-python
that referenced
this pull request
Oct 15, 2026
… migration, push dedup, degradation test, smoke guard - sample executors enqueue the initial Task snapshot first (V2 protocol requirement) - the sample was functionally broken on the official handler without this - send_notification: skip the log and the extra span when the inner sender routes fanout through _dispatch_notification (V2 double-log) - _wrap_legacy_collaborators: use the parameter instead of re-reading the attribute; V2 branch logs at debug when install_dispatch_wrapper is a no-op - degradation test: assert the WARNING and that a request still yields the SERVER entry span (D9 test-plan item 5) - E2E: smoke guard driving the sample app on the official handler; encoding cleanup (BOM/mojibake); debug print removed Signed-off-by: z00930736 <zoujie5@huawei.com>
… migration, push dedup, degradation test, smoke guard - sample executors enqueue the initial Task snapshot first (V2 protocol requirement) - the sample was functionally broken on the official handler without this - send_notification: skip the log and the extra span when the inner sender routes fanout through _dispatch_notification (V2 double-log) - _wrap_legacy_collaborators: use the parameter instead of re-reading the attribute; V2 branch logs at debug when install_dispatch_wrapper is a no-op - degradation test: assert the WARNING and that a request still yields the SERVER entry span (D9 test-plan item 5) - E2E: smoke guard driving the sample app on the official handler; encoding cleanup (BOM/mojibake); debug print removed Signed-off-by: z00930736 <zoujie5@huawei.com>
Signed-off-by: z00930736 <zoujie5@huawei.com>
…y rename The observability-sample mock_llm pointed at subscribe-incident/resources (which was renamed to fault-management in project-openan#74) - the a2at/negotiation scenarios crashed with FileNotFoundError on mock-response load. Both directory names are now accepted. Signed-off-by: z00930736 <zoujie5@huawei.com>
The [[tool.uv.index]] block pinned every uv resolution (including CI) to pypi.tuna.tsinghua.edu.cn, which is intermittently unreachable from GitHub Actions runners - the e2e job failed downloading babel through it. Remove the repo-level mirror so CI resolves from official PyPI; developers in mainland China can keep a fast mirror via their own uv configuration (UV_DEFAULT_INDEX or ~/.config/uv/uv.toml) instead. Signed-off-by: z00930736 <zoujie5@huawei.com>
…le-docs # Conflicts: # a2a-t-sample/README-zh.md # a2a-t-sample/README.md
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.
What
Rewrites a2a-t-sample/observability-sample/README.md as a pair of friendly docs — \README.md\ (English) and \README-zh.md\ (Chinese) — in the same style as the container READMEs, and registers the sample in the container indexes.
Why
The previous README was a single Chinese-only file focused on internals (decorator names, span tables, spec references). This makes the sample approachable:
Notes
Type of Change
Checklist
git commit -s) per the DCO