Skip to content

Conversation

@jeremymeng
Copy link
Member

@jeremymeng jeremymeng commented Oct 29, 2025

This fixes #36383.

Parentheses are only valid to denote comments according to RFC 9110. This PR updates our user agent strings to remove the OS "product" and add OS information as comments to the platform version instead.

This fixes Azure#36383.

Parenthesis are only valid to denote comments.  This PR update our user agent
strings to remove the OS "product" and add OS information as comments to the
platform version instead.
Copilot AI review requested due to automatic review settings October 29, 2025 21:01
@jeremymeng jeremymeng requested review from a team and EldertGrootenboer as code owners October 29, 2025 21:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR consolidates OS information into runtime version strings for user agent reporting across multiple packages, improving consistency and readability. The changes unify the format to follow a standard pattern: runtime/version (OS details).

Key changes:

  • Merged separate OS and runtime version entries into a single combined string format
  • Updated format from key-value-key pattern to parenthetical version (OS info) pattern
  • Removed standalone "OS" map entries across all platform implementations

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
sdk/servicebus/service-bus/src/util/runtimeInfo.ts Refactored to combine runtime and OS info; added Bun/Deno runtime detection
sdk/servicebus/service-bus/src/util/runtimeInfo-react-native.mts Simplified to combine react-native version with OS info in parentheses
sdk/core/ts-http-runtime/src/util/userAgentPlatform.ts Combined runtime version with OS info, removed separate OS entry
sdk/core/ts-http-runtime/src/util/userAgentPlatform-react-native.mts Combined react-native version with OS info, removed separate OS entry
sdk/core/ts-http-runtime/src/util/userAgentPlatform-browser.mts Combined browser version with OS info, removed separate OS entry
sdk/core/core-rest-pipeline/src/util/userAgentPlatform.ts Combined runtime version with OS info, removed separate OS entry
sdk/core/core-rest-pipeline/src/util/userAgentPlatform-react-native.mts Combined react-native version with OS info, removed separate OS entry
sdk/core/core-rest-pipeline/src/util/userAgentPlatform-browser.mts Combined browser version with OS info, removed separate OS entry
sdk/core/ts-http-runtime/test/node/userAgentPlatform.spec.ts Updated tests to verify combined format and removed OS-only assertions
sdk/core/ts-http-runtime/test/browser/userAgentPlatform.spec.ts Removed test for standalone OS entry
sdk/core/core-rest-pipeline/test/node/userAgentPlatform.spec.ts Updated tests to verify combined format and removed OS-only assertions
sdk/core/core-rest-pipeline/test/browser/userAgentPlatform.spec.ts Removed test for standalone OS entry

@jeremymeng
Copy link
Member Author

@microsoft-github-policy-service rerun

@jeremymeng jeremymeng closed this Oct 29, 2025
@jeremymeng jeremymeng reopened this Oct 29, 2025
@jeremymeng jeremymeng requested a review from maorleger October 30, 2025 23:53
@jeremymeng jeremymeng merged commit 6a3e479 into Azure:main Nov 3, 2025
14 checks passed
@jeremymeng jeremymeng deleted the core/fix-user-agent-value branch November 3, 2025 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[core] our OS information in user-agent header value should be after runtime, not as a product of its own

3 participants