← 输入框|github.com|刷新
Skip to content

Add request metadata capture for gRPC exchange attachments - #1301

Closed
yurkki wants to merge 3 commits into
allure-framework:mainfrom
yurkki:feat/allure-grpc-request-metadata
Closed

yurkki wants to merge 3 commits into
allure-framework:mainfrom
yurkki:feat/allure-grpc-request-metadata

Conversation

@yurkki

@yurkki yurkki commented Jun 26, 2026 •

Copy link
Copy Markdown

Context

allure-grpc currently captures response metadata, but request metadata is not captured in gRPC exchange attachments.
This makes debugging metadata-driven calls harder (auth, tracing, routing headers are not visible in report evidence).
This PR adds optional request metadata capture while preserving backward compatibility:

  • adds interceptRequestMetadata flag
  • keeps existing constructors and default behavior unchanged
  • captures request metadata from ClientCall.start(..., Metadata headers) into exchange request headers when enabled
  • keeps response metadata behavior unchanged
    Also included:
  • unit tests for enabled and disabled request metadata capture
  • README updates with new constructor usage and defaults

Checklist

Co-authored-by: Cursor <cursoragent@cursor.com>
@CLAassistant

CLAassistant commented Jun 26, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@baev baev removed the theme:grpc label Jul 23, 2026
@baev

baev commented Aug 17, 2026

Copy link
Copy Markdown
Member

@yurkki thanks for the contribution! the issue fixed via #1383

@baev baev closed this Aug 17, 2026
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.

3 participants