Skip to content

feat: include per-descriptor code and limitName in response dynamic metadata - #1239

Closed
sc0ttbeardsley wants to merge 1 commit into
envoyproxy:mainfrom
sc0ttbeardsley:feat/response-dynamic-metadata-outcome
Closed

sc0ttbeardsley wants to merge 1 commit into
envoyproxy:mainfrom
sc0ttbeardsley:feat/response-dynamic-metadata-outcome

Conversation

@sc0ttbeardsley

Copy link
Copy Markdown

Changes to dynamic metadata (RESPONSE_DYNAMIC_METADATA):

  • Only built when at least one descriptor is over its limit (breaking change)
  • Each descriptor now includes code (OK or OVER_LIMIT) from response status
  • Each descriptor now includes limitName (matched limit name, if configured)

Before:

  {descriptors: [{entries: [key=val]}], domain: ...}

After (only when over limit):

  {descriptors: [{entries: [key=val], code: OVER_LIMIT, limitName: my-rule}], ...}

…etadata

Changes to dynamic metadata (RESPONSE_DYNAMIC_METADATA):
- Only built when at least one descriptor is over its limit (breaking change)
- Each descriptor now includes code (OK or OVER_LIMIT) from response status
- Each descriptor now includes limitName (matched limit name, if configured)

Before:
  {descriptors: [{entries: [key=val]}], domain: ...}

After (only when over limit):
  {descriptors: [{entries: [key=val], code: OVER_LIMIT, limitName: my-rule}], ...}

Signed-off-by: Scott Beardsley <sbeardsley@pinterest.com>
@voraci0us

voraci0us commented Sep 25, 2026 •

Copy link
Copy Markdown

+1 this would be very useful, would enable logging the status of individual ratelimit rules in the Envoy Proxy access log. I'm currently maintaining a fork to have this feature and would love to get rid of it.

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions Bot added the stale label Oct 26, 2026
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions Bot closed this Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants