Skip to content

Auto-attach Node SDK and MCP client metadata for OSS telemetry#122

Merged
suguanYang merged 2 commits into
mainfrom
feat/wangbinqi/oss-telemetry-client-metadata
Jul 13, 2026
Merged

Auto-attach Node SDK and MCP client metadata for OSS telemetry#122
suguanYang merged 2 commits into
mainfrom
feat/wangbinqi/oss-telemetry-client-metadata

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • Auto-merge createdByClient / clientVersion into jobs.create for the official Node SDK.
  • Attach MCP client defaults on async parse tools and export metadata helpers.
  • Align SDK VERSION with the published package version for accurate client attribution.

Cross-repo tracking: Ontos-AI/knowhere#213

Test plan

  • pnpm exec vitest run src/lib/__tests__/document-metadata.test.ts src/resources/__tests__/jobs.test.ts packages/mcp/src/__tests__/document-metadata.test.ts packages/mcp/src/__tests__/mcp.test.ts
  • Confirm caller-provided metadata keys still win over defaults

Made with Cursor

Fill createdByClient/clientVersion for the Node SDK and MCP so self-hosted aggregates can attribute jobs without callers setting metadata manually.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@suguanYang
suguanYang merged commit 6cc4809 into main Jul 13, 2026
4 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant