Skip to content

fix: deprecate resource detector#13844

Merged
mutianf merged 3 commits into
googleapis:mainfrom
mutianf:env_info
Jul 21, 2026
Merged

fix: deprecate resource detector#13844
mutianf merged 3 commits into
googleapis:mainfrom
mutianf:env_info

Conversation

@mutianf

@mutianf mutianf commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@mutianf
mutianf requested review from a team as code owners July 21, 2026 16:25

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request migrates the GCP platform detection in EnvInfo from the legacy GCPPlatformDetector to the OpenTelemetry-native GCPResourceProvider, updating the pom.xml dependencies, refactoring EnvInfo to use OpenTelemetry Attributes, and adapting the unit tests accordingly. The review feedback recommends avoiding eager initialization of GCPResourceProvider as a static final field to prevent potential blocking operations or network I/O during class loading, suggesting instead to instantiate it lazily inside the detect() method.

@nimf nimf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@mutianf
mutianf merged commit aba4f01 into googleapis:main Jul 21, 2026
213 checks passed
@mutianf
mutianf deleted the env_info branch July 21, 2026 18:42
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.

4 participants