Skip to content

RUM-15877: Add fed2 endpoint to DatadogSite#3383

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
developfrom
aleksandr-gringauz/RUM-15877/add-fed2
Apr 22, 2026
Merged

RUM-15877: Add fed2 endpoint to DatadogSite#3383
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
developfrom
aleksandr-gringauz/RUM-15877/add-fed2

Conversation

@aleksandr-gringauz

@aleksandr-gringauz aleksandr-gringauz commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Adding a new DC similar to what iOS already did here DataDog/dd-sdk-ios#2827

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@aleksandr-gringauz

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e392dc9a02

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

/**
* The US2_FED site (FedRAMP compatible): [fed2.ddog-gov.com](https://fed2.ddog-gov.com).
*/
US2_FED("us2_fed", "browser-intake-fed2-ddog-gov.com"),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Use the resolvable Fed2 intake host

When an app selects DatadogSite.US2_FED, the default request factories build their upload URLs from site.intakeEndpoint; with browser-intake-fed2-ddog-gov.com those uploads target a host that does not resolve from DNS, while the Fed2 browser intake host resolves as browser-intake-fed2.ddog-gov.com. This makes the new site unable to send RUM/logs/traces/replay/profile data unless users configure custom endpoints.

Useful? React with 👍 / 👎.

@aleksandr-gringauz aleksandr-gringauz Apr 22, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a very nice catch! Fixed. The correct url is browser-intake-us2-ddog-gov.com, confirmed with the backend team.

@codecov-commenter

codecov-commenter commented Apr 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.18%. Comparing base (9b024df) to head (bf2972a).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3383      +/-   ##
===========================================
+ Coverage    71.99%   72.18%   +0.19%     
===========================================
  Files          956      956              
  Lines        35307    35307              
  Branches      5861     5861              
===========================================
+ Hits         25418    25484      +66     
+ Misses        8284     8242      -42     
+ Partials      1605     1581      -24     
Files with missing lines Coverage Δ
...src/main/kotlin/com/datadog/android/DatadogSite.kt 100.00% <100.00%> (ø)
...og/android/flags/internal/DatadogSiteExtensions.kt 100.00% <100.00%> (ø)

... and 32 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aleksandr-gringauz aleksandr-gringauz marked this pull request as ready for review April 21, 2026 17:36
@aleksandr-gringauz aleksandr-gringauz requested review from a team as code owners April 21, 2026 17:36
@aleksandr-gringauz aleksandr-gringauz marked this pull request as draft April 21, 2026 17:37
@aleksandr-gringauz aleksandr-gringauz force-pushed the aleksandr-gringauz/RUM-15877/add-fed2 branch from e392dc9 to 8904cc4 Compare April 22, 2026 10:00
0xnm
0xnm previously approved these changes Apr 22, 2026

@0xnm 0xnm 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.

🚀

hamorillo
hamorillo previously approved these changes Apr 22, 2026
@aleksandr-gringauz aleksandr-gringauz dismissed stale reviews from hamorillo and 0xnm via bf2972a April 22, 2026 15:44
DatadogSite.AP1 -> "ap1.datadoghq.com"
DatadogSite.AP2 -> "ap2.datadoghq.com"
DatadogSite.US1_FED -> "ddog-gov.com"
DatadogSite.US2_FED -> "us2.ddog-gov.com"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorry, one more fix. The site was also wrong. This time - double checked with browser DataDog/browser-sdk#4495.

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.

although the old one also resolves and opens a page, but maybe the old name is something to be deprecated

@aleksandr-gringauz

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Apr 22, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-04-22 15:57:18 UTC ℹ️ Start processing command /merge


2026-04-22 15:57:24 UTC ℹ️ MergeQueue: waiting for PR to be ready

This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
It will be added to the queue as soon as checks pass and/or get approvals. View in MergeQueue UI.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.


2026-04-22 16:38:08 UTC ℹ️ MergeQueue: merge request added to the queue

The expected merge time in develop is approximately 1h (p90).


2026-04-22 17:33:52 UTC ℹ️ MergeQueue: This merge request was merged

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.

4 participants