KEMBAR78
fix: set default values for monitored resource by frankyn · Pull Request #2809 · googleapis/java-storage · GitHub
Skip to content

Conversation

@frankyn
Copy link
Contributor

@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
Contributor

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
Contributor 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