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

Refactor resource mapping logic into resource detection package #235

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

aabmass
Copy link
Collaborator

@aabmass aabmass commented Feb 22, 2023

and update the exporters to use the shared code.

This means the trace and metric exporter now have a dependency on the resource detector package.

@aabmass aabmass force-pushed the resource-mapping-refactor branch 2 times, most recently from dd1dd1e to 36155a9 Compare February 22, 2023 19:01
and update the exporters to use the shared code.
@aabmass aabmass force-pushed the resource-mapping-refactor branch from 36155a9 to 04d0db6 Compare February 22, 2023 19:15
Comment on lines +445 to 448
if monitored_resource and monitored_resource.type not in (
_resource_constants.GENERIC_NODE,
_resource_constants.GENERIC_TASK,
):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Reason for this is: it doesn't seem like good UX to ever send the g.co/r/generic* since that is populated from service resource labels.

@aabmass aabmass marked this pull request as ready for review February 22, 2023 19:34
@aabmass aabmass requested a review from a team February 22, 2023 19:34
@aabmass aabmass requested a review from dashpole February 23, 2023 15:01
@aabmass
Copy link
Collaborator Author

aabmass commented Feb 23, 2023

@dashpole lmk if you have any objections or I'll merge

@aabmass aabmass merged commit e788e6c into GoogleCloudPlatform:main Feb 23, 2023
@aabmass aabmass deleted the resource-mapping-refactor branch February 23, 2023 16:03
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.

3 participants