Skip to content

Fix output metadata timer fallback - #236

Open
ydah wants to merge 1 commit into
bigcommerce:mainfrom
ydah:fix/output-metadata-timer-yield
Open

ydah wants to merge 1 commit into
bigcommerce:mainfrom
ydah:fix/output-metadata-timer-yield

Conversation

@ydah

@ydah ydah commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

What? Why?

OutputMetadataTimer is enabled by default, but currently returns early without yielding when active_call does not support output_metadata.

This causes the controller body to be skipped and nil to be returned for test doubles, custom call paths, or future gRPC changes.

This change yields directly and returns the request result when output metadata is unavailable, while preserving the existing timing instrumentation for supported active calls.

How was it tested?

  • Added a regression spec for active calls without output_metadata

@ydah
ydah force-pushed the fix/output-metadata-timer-yield branch from e140227 to ecce074 Compare August 9, 2026 23:04
@ydah
ydah force-pushed the fix/output-metadata-timer-yield branch from ecce074 to 70efd5e Compare August 9, 2026 23:27
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.

1 participant