docs(examples): with-intelligence-export — ship loop traces to Tangle Intelligence#70
Merged
Merged
Conversation
… Intelligence Adds examples/with-intelligence-export/ showing both integration paths into the hosted intelligence backend: the built-in createOtelExporter (point endpoint at .../v1/otlp; it appends /v1/traces → the ingest route) wired via loopEventToOtelSpan per loop event, and a raw-OTLP POST for bring-your-own traces with no runtime. Insights read back via GET /v1/insights/*; tenant resolves from the Bearer key. Indexed in examples/README.md.
tangletools
pushed a commit
that referenced
this pull request
May 28, 2026
…mat fix from #70 was lost in merge)
tangletools
added a commit
that referenced
this pull request
May 28, 2026
…elligence pipe (no sandbox) (#72) * docs(examples): agents-of-all-shapes — any framework → one Tangle Intelligence pipe (no sandbox) A QA-verified showcase that Tangle Intelligence works with ANY agent, not just our sandbox. Tangle runtime, OpenAI-compatible router (tcloud/OpenRouter), Mastra, Claude Agent SDK, and a Python agno agent all converge on the same canonical OTel GenAI spans → fromOtelSpans → analyzeRuns → InsightReport, computed in-process (no sandbox, no deploy, no server). - shared/intelligence.ts: the one contract — toInsightReport(spans) + shipToTangleOtlp(spans) over standard gen_ai.* OTel attributes + score - shapes.ts: 4 TS shapes as deterministic batches (CI-verifiable, no key) with the exact live wiring documented per framework - python-agno/: runnable agno → OTLP script - run.ts: merges all shapes → fleet InsightReport + per-shape breakdown - tests/agents-of-all-shapes.test.ts: proves each shape → real InsightReport + cross-framework fleet aggregation + real cost from gen_ai.usage.cost_usd 377/377, typecheck + biome clean. * fix(lint): format with-intelligence-export example (CI lint gate; format fix from #70 was lost in merge) --------- Co-authored-by: Drew Stone <drewstone329@gmail.com>
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.
Closes the 'no example wires the OTEL exporter to hosted intelligence' gap. Two paths, same pipeline: built-in
createOtelExporter(endpoint at.../v1/otlp, it appends/v1/traces) +loopEventToOtelSpan, and a raw-OTLP POST for bring-your-own traces. Tenant resolves from the Bearer key. Insights viaGET /v1/insights/*.