Skip to content

fix: use the EU endpoint for flag streaming - #89

Merged
kyeh-amp merged 1 commit into
mainfrom
ci/pr-88-eu-streaming-endpoint
Dec 4, 2026
Merged

kyeh-amp merged 1 commit into
mainfrom
ci/pr-88-eu-streaming-endpoint

Conversation

@kyeh-amp

@kyeh-amp kyeh-amp commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

This PR takes precedence over #88. It contains the same commit from that external contribution (c1fb5a8, authored by Alex). The branch was copied into this repository so the Unit Test workflow can run with the repository secrets, which fork runs do not get.

Summary

With streaming enabled and ServerZone.EU selected, the SDK used the US streaming endpoint by default. The constructor compared the streaming URL with the default polling URL, so the check never matched. That comparison could also replace an explicit streaming URL that happened to equal the polling default. The check now compares against the default streaming URL, so EU clients use https://stream.lab.eu.amplitude.com by default and keep custom streaming URLs.

Regression tests cover the default EU and US streaming endpoints and custom URLs in the EU zone.

Checklist

  • The PR title follows Conventional Commits.
  • Breaking change? No.

🤖 Generated with Claude Code

@kyeh-amp kyeh-amp mentioned this pull request Dec 4, 2026
1 task done
@kyeh-amp
kyeh-amp marked this pull request as ready for review December 4, 2026 09:05
@kyeh-amp
kyeh-amp requested a review from a team as a code owner December 4, 2026 09:05

@zhukaihan zhukaihan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🤖 Codex review

The EU default now compares against the streaming endpoint constant. The regression tests cover EU and US defaults and preserve a custom URL even when it equals the polling default.

@kyeh-amp
kyeh-amp merged commit c99e8cb into main Dec 4, 2026
12 of 18 checks passed
@kyeh-amp
kyeh-amp deleted the ci/pr-88-eu-streaming-endpoint branch December 4, 2026 18:12

This branch was successfully deployed

1 active deployment
Unit Test — c1fb5a82 Deployed Dec 4, 2026 by kyeh-amp via test (3.8) #242
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.

3 participants