Skip to content

[RUM-11767] Rename last_failure_status ddtag to retry_after#2808

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
developfrom
sara.susano/RUM-11767/add-retry-after-ddtag
Apr 8, 2026
Merged

[RUM-11767] Rename last_failure_status ddtag to retry_after#2808
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
developfrom
sara.susano/RUM-11767/add-retry-after-ddtag

Conversation

@saraSr5

@saraSr5 saraSr5 commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

What and why?

Rename the last_failure_status ddtag to retry_after in the ddtags query parameter to align with the RUM intake spec and Browser SDK convention.

How?

Updated all request builders that previously appended last_failure_status:<code> to use retry_after:<code> instead:

  • DatadogRUM/Sources/Feature/RequestBuilder.swift
  • DatadogSessionReplay/Sources/Feature/RequestBuilders/SegmentRequestBuilder.swift
  • DatadogSessionReplay/Sources/Feature/RequestBuilders/ResourceRequestBuilder.swift
  • DatadogProfiling/Sources/RequestBuilder.swift
    Added missing test coverage for the retry_after code path in the Session Replay and Profiling request builders.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes (not needed — internal tag rename)
  • Add Objective-C interface for public APIs - see our guidelines (internal)
  • Run make api-surface when adding new APIs

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR renames the last_failure_status ddtag to retry_after across all request builders to align with the RUM intake specification and Browser SDK convention. The change affects network request query parameters when handling retry logic.

Changes:

  • Renamed the ddtag from last_failure_status to retry_after in four request builders (RUM, Session Replay Segment, Session Replay Resource, and Profiling)
  • Added test coverage for the retry code path in Session Replay and Profiling request builders
  • Updated existing RUM test to expect the new tag name

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
DatadogRUM/Sources/Feature/RequestBuilder.swift Renamed last_failure_status to retry_after in ddtags
DatadogRUM/Tests/Feature/RequestBuilderTests.swift Updated test assertion to verify new tag name
DatadogSessionReplay/Sources/Feature/RequestBuilders/SegmentRequestBuilder.swift Renamed last_failure_status to retry_after in ddtags
DatadogSessionReplay/Sources/Feature/RequestBuilders/ResourceRequestBuilder.swift Renamed last_failure_status to retry_after in ddtags
DatadogSessionReplay/Tests/Feature/RequestBuilder/SegmentRequestBuilderTests.swift Added test for retry query parameters with new tag name
DatadogSessionReplay/Tests/Feature/RequestBuilder/ResourceRequestBuilderTests.swift Added test for retry query parameters with new tag name
DatadogProfiling/Sources/RequestBuilder.swift Renamed last_failure_status to retry_after in ddtags
DatadogProfiling/Tests/RequestBuilderTests.swift Added test for retry query parameters with new tag name

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@saraSr5
saraSr5 marked this pull request as ready for review April 7, 2026 13:14
@saraSr5
saraSr5 requested review from a team as code owners April 7, 2026 13:14

@maxep maxep left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants