mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-22 08:38:13 +02:00
feat: refactor node spec and add mcp tools (#244)
* refactor: carve out extraction panel * refactor: create spec versions for node types * refactor: create a GenericNode and remove custom nodes * feat: add python and typescript sdk * add dograh sdk * fix: fetch draft workflow definition over published one * fix: fix routes of SDKs to use code gen * chore: remove doclink dependency to reduce image size * chore: format files * chore: bump pipecat * feat: let mcp fetch archived workflows on demand * chore: fix tests * feat: add sdk documentation * chore: change banner and add badge
This commit is contained in:
parent
0a61ef295f
commit
00a1a22b74
162 changed files with 14355 additions and 3554 deletions
|
|
@ -94,6 +94,14 @@ class _OrgRoutingExporter(SpanExporter):
|
|||
org_buckets = {}
|
||||
|
||||
for span in spans:
|
||||
# Drop fastmcp's built-in auto-instrumentation spans
|
||||
# (`tools/call <name>`, etc.) — our `@traced_tool` decorator
|
||||
# in `api/mcp_server/tracing.py` produces the spans we want. Keeping
|
||||
# both would just double every trace.
|
||||
scope = getattr(span, "instrumentation_scope", None)
|
||||
if scope is not None and scope.name == "fastmcp":
|
||||
continue
|
||||
|
||||
org_id = span.attributes.get("dograh.org_id") if span.attributes else None
|
||||
if org_id and str(org_id) in self._org_exporters:
|
||||
org_buckets.setdefault(str(org_id), []).append(span)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue