Skip to content

Add request metadata capture for gRPC exchange attachments#1301

Open
yurkki wants to merge 1 commit into
allure-framework:mainfrom
yurkki:feat/allure-grpc-request-metadata
Open

Add request metadata capture for gRPC exchange attachments#1301
yurkki wants to merge 1 commit 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.

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