Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set default values for monitored resource #2809

Merged
merged 2 commits into from
Nov 5, 2024
Merged

Conversation

frankyn
Copy link
Member

@frankyn frankyn commented Nov 5, 2024

b/377466694

@product-auto-label product-auto-label bot added size: s Pull request size is small. api: storage Issues related to the googleapis/java-storage API. labels Nov 5, 2024
@frankyn frankyn marked this pull request as ready for review November 5, 2024 22:13
@frankyn frankyn requested a review from a team as a code owner November 5, 2024 22:13
.put("gcp.resource_type", "storage.googleapis.com/Client")
.put("project_id", projectIdToUse)
.put("instance_id", UUID.randomUUID().toString())
.put("api", "grpc");
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: could we use something to detect grpc vs http even if this isn't set up for http yet? would make this reusable in the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

AFAIU, resource detector is platform dependent on https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/resourcedetectionprocessor/README.md#gcp-metadata

API type would need to be captured client side / added when introduced into the java storage client.

@frankyn frankyn merged commit 27829a4 into main Nov 5, 2024
20 of 21 checks passed
@frankyn frankyn deleted the add-default-values branch November 5, 2024 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/java-storage API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants