Repository navigation
Conversation
New page for the traceAI Go middleware for anthropic-sdk-go (traceAI PR #259): install, OTLP/HTTP export to Future AGI, the span and its attributes, the SDK's own span, FI_HIDE_* privacy settings, limitations and troubleshooting. Alpha, verified through a stand-in endpoint (local proxy with real Claude responses). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 16, 2026
Matches the other Go pages (traceai/go/openai, go/gemini, go/a2a, go/eino). New URL: /docs/integrations/traceai/go/anthropic. Not yet published, so no redirect is needed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…272) Co-Authored-By: Claude Opus 5.5 <[email protected]>
The page goes live only after traceAI#259 is merged to main and go/anthropic is tagged, so install with @latest instead of @dev or the PR branch, link the source on main, and drop the troubleshooting row for the untagged module. The warning now says what was run (real Claude models through an Anthropic-compatible proxy) instead of "stand-in endpoint"; it still says api.anthropic.com was not called. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Code <[email protected]>
Pin released packages and Go 1.26, remove internal qualification prose, flush telemetry on API errors, and register the Go guide in the integration catalog. Add contract and cloud-only Go checks. Direct success qualification remains blocked on Anthropic credits. Co-Authored-By: Claude Code <[email protected]>
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.
Status: draft — blocked on Anthropic credits
TH-8272 (parent TH-8103). Do not merge or publish yet. The direct-provider gate was attempted with a real Anthropic key in E2B, with
ANTHROPIC_BASE_URLunset.POST https://api.anthropic.com/v1/messagesreturned HTTP 400invalid_request_error: “Your credit balance is too low to access the Anthropic API.” No proxy or alternate provider was substituted. The latest fresh qualification retry reproduced the same billing response and stopped before the weather command.Human step: add credits to the Anthropic workspace associated with the staged
ANTHROPIC_API_KEY, or provision a funded key through the existing secret store. Then rerun the exact page snippet and packaged weather example to qualify successful plain, tool and streaming requests plus the intentional invalid-model error. Keep the PR draft until those claims are verified directly.What changed and why
src/pages/docs/integrations/traceai/go/anthropic.mdxfor the releasedgithub.com/future-agi/traceAI/go/[email protected]module and its Go 1.26.0 minimum./v2import path rather than implying an untested major-version upgrade.run()beforelog.Fatal, so even an API failure flushes the trace.main(ddca13930bd9c4b9cc80384b7cf2b1a0d71fa43d) rather than rebasing or force-pushing. Head:9839d6fd648eac02ee97b185bd704470322dbbc3.Verification
All builds and tests ran in E2B or GitHub Actions, not on the local workstation.
E2B
ant962-docs-r1— passednode --test scripts/anthropic-go-page.test.mjs: four page-contract checks passed.npm run test:integrations: 277 passed, zero failed/skipped.node scripts/audit-links.mjs: zero broken navigation links and zero broken content links; 31 existing orphan-page warnings.node scripts/anthropic-go-snippet.mjs.go build -o example .,go vet ./..., andgo test -race github.com/future-agi/traceAI/go/anthropicpassed using the published packages.E2B
ant962-direct-r1— blocked by provider billingFI_BASE_URL=http://127.0.0.1:4318routed telemetry to the sandbox's loopback collector. Future AGI Cloud credentials never entered E2B.api.anthropic.comand failed with the insufficient-credit response above. The weather command did not run after that failure; there is no new direct-provider successful-response, streaming, tool, usage, or content-redaction qualification claim.anthropic.messages.createspan withgen_ai.span.kind=LLM, provideranthropic,server.address=api.anthropic.com, session/user tags, Input/Output,error.type=invalid_request_error, and status ERROR.ant962-error-decode-r1decoded the captured OTLP body successfully. The collector compared the exported bytes against the real provider key in-process before writing them; the fetched body's SHA-256 matched that checked payload.th8103-docs: collector HTTP 200, trace IDbb14a83c5ecda07b9437e7f52db27002. This is ingest acceptance, not a browser/readback assertion or evidence of a successful model call.E2B
ant962-fix-direct-r1— billing blocker reconfirmedANTHROPIC_BASE_URLunset. No source changes or model/provider substitution were made.POST https://api.anthropic.com/v1/messagesand returned HTTP 400,invalid_request_error: “Your credit balance is too low to access the Anthropic API.” The run exited 1. The packaged weather/stream/tool/invalid-model command therefore did not execute.get_info_404=true. No new trace was forwarded to Cloud because no successful provider call was available.th8103-docs. TH-8272 stays open and this PR stays draft until then.CI
All nine checks completed successfully on head
9839d6fd648eac02ee97b185bd704470322dbbc3.The branch is conflict-free and contains current main, but this PR intentionally remains draft because direct-provider successful-call qualification is still blocked.
Review and remaining scope
E2E coverage: not applicable (this docs repository has no product
e2e/coverage harness). Documentation contracts, compilation and existing site CI are applicable. No Python, migration, backend contract or product runtime changes.Self-review checked the actual diff against current main, the released module source, error handling, secret separation, privacy caveats and internal minimal-code/testing/PR standards. No introduced blocking code defect identified. The direct-provider success qualification remains an explicit release blocker, not something green CI can waive. No browser was driven, no screenshot was fabricated, and no ticket was closed.
Local engineering receipts:
/Volumes/nik-ext-1/tmp/traceai-release-20261104/e2b/runs/ant962-docs-r1/receipt.json/Volumes/nik-ext-1/tmp/traceai-release-20261104/e2b/runs/ant962-direct-r1/receipt.json/Volumes/nik-ext-1/tmp/traceai-release-20261104/e2b/runs/ant962-error-decode-r1/receipt.json/Volumes/nik-ext-1/tmp/agent-plugins-1106/ant962-error-decoded-r1/error-summary.json/Volumes/nik-ext-1/tmp/traceai-release-20261104/e2b/runs/ant962-fix-direct-r1/receipt.json/Volumes/nik-ext-1/tmp/traceai-release-20261104/e2b/runs/ant962-fix-direct-r1/stderr.log(billing response at line 51)/Volumes/nik-ext-1/tmp/traceai-release-20261104/e2b/runs/ant962-fix-direct-r1/fetched/captures.tgz🤖 Generated with Claude Code