11 Commits
Author SHA1 Message Date
bendtherules 627b80008e feat(langfuse): add opt-in Langfuse observability integration
Add Langfuse as an OTel trace transport for MCP request lifecycle tracking.

Changes:
- New src/lib/langfuse-transport.ts: initializes LangfuseSpanProcessor when
  ASK262_LANGFUSE_ENABLED=true with valid credentials
- src/lib/tracing.ts: add metadata to TraceContext, propagate it to child spans,
  use startActiveSpan for proper OTel context, add setupTracing() entry point,
  add getSessionMetadata() for version/transport metadata
- src/lib/logger.ts: include TraceContext.metadata in JSON log mixin
- src/mcp-server-{http,stdio}.ts: call setupTracing() at startup, pass
  version/transport metadata through withSpan/withSpanContext
- src/lib/fireworks-embeddings.ts: wrap API calls in withSpan() with gen_ai
  attributes for Langfuse generation/cost tracking
- .env.example: add LANGFUSE_* configuration variables
- AGENTS.md: document Langfuse integration
- package.json: add @langfuse/tracing, @langfuse/otel, @opentelemetry/sdk-node
2026-04-27 18:31:19 +05:30
bendtherules 9578502bca Add basic logging 2026-04-22 12:47:17 +05:30
bendtherules 35e8fadca2 Add mcp-use/inspector route 2026-04-20 18:33:44 +05:30
bendtherules 385f609e7b feat: Support Fireworks embedding for ingest and tool 2026-04-16 13:06:25 +05:30
bendtherules db0e249874 Add mcp http server 2026-04-16 11:51:24 +05:30
bendtherules e34441c341 Fix tsconfig 2026-04-13 18:46:55 +05:30
bendtherules ec5669dcd7 feat: Impl HtmlTextSplitter 2026-04-03 11:04:40 +05:30
bendtherules ac518b7b77 ingest.ts - handle empty db, add loader 2026-03-31 13:46:19 +05:30
bendtherules 8bbd159224 Migrate to langchain 2026-03-31 13:06:59 +05:30
bendtherules 0f5a31137f chore: Lint fixes 2026-03-27 17:47:12 +05:30
bendtherules b6dbcfe91a build: migrate to Typescript + biome 2026-03-27 17:33:58 +05:30