Repository navigation
[CI] (69eeefc) google-adk/node-weather - #4077
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
wizard-ci-bot[bot] wants to merge 1 commit into
Conversation
Author
PR Evaluation ReportSummaryThis PR instruments a Google ADK Node.js weather assistant with PostHog AI observability by adding
Confidence score: 5/5 🧙
File changes
App sanity check ✅
IssuesNo issues.
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | @posthog/ai ^8.13.1 and posthog-node ^5.52.5 |
| PostHog client initialized | Yes | new PostHog(apiKey, { host }) at module scope, passed to PostHogADKPlugin |
| capture() | Yes | PostHogADKPlugin handles all captures via ADK callbacks |
| identify() | N/A | Identity derived from ADK userId by the plugin |
| Error tracking | Yes | enableExceptionAutocapture: true on PostHog client |
| Reverse proxy | N/A | Server-side Node.js CLI app |
Issues
No issues.
Other completed criteria
- Instrumentation initialized exactly once at module scope
PostHogADKPlugincaptures `` events for model calls via ADK callbacks- Traces are grouped per
runAsyncinvocation by the plugin - `` derived from ADK
sessionId(`thread_abc`) — shared across both turns - Session key is correct (``) as handled by the plugin internally
- Session cardinality is correct — one session ID for both traces
- Identity scope correct — CLI process = single conversation;
userIdis process-global - No hand-authored spans — all spans come from the plugin's agent/tool callbacks
- No pre-existing PostHog code to modify (additive only)
- API key and host read from environment variables, not hardcoded in source
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
src/index.ts |
, , `` |
Plugin automatically captures: 2 traces (one per ask()), agent run spans, tool call spans for get_weather, and generations for each model call. All grouped under session thread_abc with distinct_id user_123. |
Issues
No issues.
Other completed criteria
- Events form the expected tree: session → 2 traces → (agent span → generation → tool span → generation) each
- Person attribution uses
user_123from ADKuserId - No manual spans captured (N/A for span parenting check)
- No fabricated structure — tree matches the app's natural ADK execution flow
- No secrets in event properties; prompts/completions captured as expected AI content
Reviewed by wizard workbench PR evaluator
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.
Automated wizard CI run
Source: wizard-pr
Trigger ID:
69eeefcApp:
google-adk/node-weatherApp directory:
apps/google-adk/node-weatherWorkbench branch:
wizard-ci-69eeefc-google-adk-node-weatherWizard branch:
posthog/functional-a1-minContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-09-22T15:55:16.535Z
Duration: 205.1s
YARA Scanner