Add hard-coded Version.cs for telemetry - #75
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #75 +/- ##
==========================================
- Coverage 92.53% 92.50% -0.04%
==========================================
Files 29 29
Lines 1433 1427 -6
Branches 164 163 -1
==========================================
- Hits 1326 1320 -6
Misses 76 76
Partials 31 31 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
kailash-b
force-pushed
the
chore/release-readiness
branch
from
June 29, 2026 09:29
901af1a to
64f751a
Compare
tanya732
approved these changes
Jun 29, 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.
✏️ Changes
This PR makes the SDK version reported in the
Auth0-Clienttelemetry header explicit and release-managed, instead of deriving it from assembly reflection.The version is now sourced from a hard-coded constant that release automation bumps on every release, matching
Added
Version.cs—internal static class VersionexposingCurrent("1.0.0-beta.6"), the single constant used for telemetry.Modified
Utils.CreateAgentString()— now builds the agent string fromVersion.Currentinstead of assembly reflection. Removed theSystem.Reflectionimport and the stale doc comment.UtilsTests.cs— the name/version assertion now checks againstVersion.Currentexactly rather than a loose regex.Removed
Utils.BuildVersionString(Version?)— no longer needed once reflection is gone.BuildVersionStringand assembly-null-fallback unit tests that covered it.🔗 References
🎯 Testing
Full unit suite passes locally (610 passed, 0 failed).
This change adds unit test coverage
This change adds integration test coverage - N/A, telemetry header content is covered by unit tests.
This change has been tested on the latest version of the platform/language or why not
✅ Checklist
I have read the Auth0 general contribution guidelines
I have read the Auth0 Code of Conduct
All existing and new tests complete without errors
All commits are signed.