Skip to content

docs(examples): public Softprobe SDK samples (basic + LangChain) - #10

Merged
zwobill merged 3 commits into
mainfrom
docs/public-sdk-examples
Sep 19, 2026
Merged

zwobill merged 3 commits into
mainfrom
docs/public-sdk-examples

Conversation

@zwobill

@zwobill zwobill commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add examples/basic and examples/langchain (docs best path: env auto / instrument() + app thread_id)
  • Mirror Python scripts under examples/python for public GitHub browse (pip install softprobe)
  • Link from root README

Test plan

  • npm run build -w @softprobe/tracing -w @softprobe/langchain
  • examples/basic and examples/langchain tsc --noEmit
  • (optional live) set SOFTPROBE_* + GEMINI_KEY and npm start in each example

Made with Cursor

Bill Zuo and others added 3 commits September 18, 2026 23:13
CallbackHandler() builds SoftprobeClient.fromEnv; session/user come from
LangChain metadata/configurable (thread_id, …) before Softprobe fallbacks.
Never invent Softprobe session UUIDs. Same identity rules for OpenAI env fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
Register Softprobe via LangChain configure hooks when credentials are set.
Opt out with SOFTPROBE_LANGCHAIN=0; keep CallbackHandler append as escape hatch.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add runnable TypeScript examples and mirrored Python scripts under
examples/ so customers can browse them on the public softprobe-js repo.

Co-authored-by: Cursor <cursoragent@cursor.com>
@zwobill
zwobill merged commit 85f9139 into main Sep 19, 2026
1 check passed
@zwobill
zwobill deleted the docs/public-sdk-examples branch September 19, 2026 23:10
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