Repository navigation
feat: send x-descope-sdk-* headers to identify SDK usage - #48
Merged
Merged
Conversation
Descope analytics groups traffic by x-descope-sdk-name and
x-descope-sdk-version, as sent by python-sdk and node-sdk. This SDK sent
only a hardcoded User-Agent (Python) or nothing (TypeScript), so its usage
was invisible.
- Python: x-descope-sdk-name=agent-auth-python, x-descope-sdk-version,
x-descope-sdk-python-version; User-Agent now uses the real version
- TypeScript: x-descope-sdk-name=agent-auth-js, x-descope-sdk-version,
and x-descope-sdk-node-version when running on Node
- Distinct names keep this traffic apart from the core SDKs
("python", "nodejs")
- Version comes from one constant per SDK (_version.py / version.ts),
with a test that it matches pyproject.toml / package.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🐕 Shuni ReviewNo new issues found. 🤖 Model: Review scope: Full review Reviewed files (7)
🐕 Review complete — View session on Shuni Portal 🐾 🤖 Model: |
slavikm
approved these changes
Nov 23, 2026
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.
Description
Descope analytics groups traffic by
x-descope-sdk-nameandx-descope-sdk-version, whichpython-sdkandnode-sdksend on every request. This SDK sent only a hardcodedUser-Agentfrom Python and nothing from TypeScript, so its usage couldn't be seen.In a Nutshell
x-descope-sdk-name: agent-auth-python,x-descope-sdk-version, andx-descope-sdk-python-version. TheUser-Agentnow uses the real version.x-descope-sdk-name: agent-auth-js,x-descope-sdk-version, andx-descope-sdk-node-versionwhen running on Node (not on Workers, Deno or browsers).python,nodejs). It shows up under the "other SDKs" breakdown ofx-descope-sdk-name-versionin thecustomer-successanalytics._version.py,version.ts). A test fails if it doesn't matchpyproject.toml/package.json.Must
🤖 Generated with Claude Code