Repository navigation
fix: use the EU endpoint for flag streaming - #89
Merged
Merged
Conversation
zhukaihan
approved these changes
Dec 4, 2026
zhukaihan
left a comment
Collaborator
There was a problem hiding this comment.
🤖 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.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.EUselected, 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 usehttps://stream.lab.eu.amplitude.comby default and keep custom streaming URLs.Regression tests cover the default EU and US streaming endpoints and custom URLs in the EU zone.
Checklist
🤖 Generated with Claude Code