Skip to content

feat(trace): Support universe domain - #36739

Merged
amanda-tarafa merged 6 commits into
googleapis:mainfrom
amanda-tarafa:trace-universe-domain
Nov 25, 2026
Merged

amanda-tarafa merged 6 commits into
googleapis:mainfrom
amanda-tarafa:trace-universe-domain

Conversation

@amanda-tarafa

@amanda-tarafa amanda-tarafa commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Fixes b/589800361.

@universe_domain = universe_domain
end

def universe_domain

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.

On this one, did you take account the last two commits we did for logging?

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.

Yes, both commits are included here. resolved_universe_domain (lines 148-152) expands to the same 6-step lookup as Logging::Service#universe_domain (shared with #lowlevel_client for load-order safety), and service_test.rb includes both the V1::TraceService::Client.configure and memoization tests.


describe Google::Cloud::Trace::Project, :mock_trace do
before do
Google::Cloud.configure.reset!

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.

Can these cause flakes, is this some sort of shared configuration that other tests might be using?

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.

Google::Cloud.configure is a shared singleton, and reset! restores test overrides back to initial defaults without removing registered fields. It won't flake here since Minitest runs single-threaded (no parallelize_me!) and all AsyncReporter tests join background threads via stop! before returning, matching logging/project_test.rb.

@amanda-tarafa
amanda-tarafa marked this pull request as ready for review November 25, 2026 01:12
@amanda-tarafa
amanda-tarafa requested review from a team and yoshi-approver as code owners November 25, 2026 01:12
@amanda-tarafa
amanda-tarafa merged commit 0d8b083 into googleapis:main Nov 25, 2026
19 checks passed
@amanda-tarafa
amanda-tarafa deleted the trace-universe-domain branch November 25, 2026 19:40
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.

2 participants