Skip to content

[Backport release-1.18] feat: attach SDK User-Agent#1760

Merged
dapr-bot merged 1 commit into
release-1.18from
backport-1758-to-release-1.18
May 29, 2026
Merged

[Backport release-1.18] feat: attach SDK User-Agent#1760
dapr-bot merged 1 commit into
release-1.18from
backport-1758-to-release-1.18

Conversation

@dapr-bot
Copy link
Copy Markdown
Collaborator

Backport 43cf7c6 from #1758.

…odyPublishers.json scope (#1758)

newRequestBuilder now sets the User-Agent header to the SDK version, matching
what the deprecated invokeMethod path emitted via DaprHttp. This is the only
default the SDK can supply that callers cannot, and it is useful for runtime
side triage. Other implicit invokeMethod behaviors (Content-Type default,
request-id, error mapping, trace propagation) are intentionally left to the
caller, since exposing the native HttpClient is the point of the migration.

Also document on DaprBodyPublishers.json that the helper uses the SDK's
default object serializer and is not a wrapper around a configured custom
DaprObjectSerializer. Its only contribution over a plain ofByteArray call is
guaranteeing a length-known BodyPublisher, which keeps the JDK on
Content-Length framing and sidesteps the Transfer-Encoding: chunked race
reported under load.

Signed-off-by: Javier Aliaga <javier@diagrid.io>
(cherry picked from commit 43cf7c6)
@dapr-bot dapr-bot requested review from a team as code owners May 28, 2026 17:08
@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.86%. Comparing base (42c3736) to head (1a7caef).

Additional details and impacted files
@@                Coverage Diff                 @@
##             release-1.18    #1760      +/-   ##
==================================================
+ Coverage           76.83%   76.86%   +0.03%     
- Complexity           2297     2298       +1     
==================================================
  Files                 243      243              
  Lines                7139     7141       +2     
  Branches              745      745              
==================================================
+ Hits                 5485     5489       +4     
+ Misses               1288     1287       -1     
+ Partials              366      365       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dapr-bot dapr-bot merged commit 58beb3f into release-1.18 May 29, 2026
16 of 17 checks passed
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.

2 participants