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

Hardcode path separator used for metric type #253

Merged
merged 2 commits into from
Jun 16, 2023

Conversation

psx95
Copy link
Contributor

@psx95 psx95 commented Jun 12, 2023

Description

Using Java Paths class to combine string leads to different path-separators depending on the OS of the machine code runs on. For metric names, only the linux path-separators are valid, so hardcoding this.

Testing

  • Tested this change on a windows machine by running the metrics example and ensuring that exported metrics appear in GCP.

Issues

Using Java Paths class to combine string leads to different
path-separators depending on the OS of the machine code runs on. For
metric names, only the linux path-separators are valid, so hardcoding
this.
@psx95 psx95 marked this pull request as ready for review June 14, 2023 19:21
@psx95 psx95 requested a review from a team as a code owner June 14, 2023 19:21
@psx95 psx95 requested review from jsuereth and punya June 14, 2023 19:21
@punya punya merged commit b391c4a into GoogleCloudPlatform:main Jun 16, 2023
@psx95 psx95 deleted the fix-export-windows branch June 16, 2023 15:04
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.

Exporting does not work on Windows due to invalid metric description type name - backslash instead of slash
2 participants