You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm trying to export metrics from Windows system. It seems like the metrics exporter library is generating invalid type name for the metric description. It concatenate prefix with the metric name using the backslash instead of slash what comes up with the below error.
INVALID_ARGUMENT: Field metricDescriptor.type had an invalid value of "custom.googleapis.com\example_counter": The metric type must be a URL-formatted string with a domain and non-empty path.
I found the code piece that is responsible for generating metric type name. It uses the Path object which uses internally default operating system file separator. That's the reason why it's not working on the Windows.
Hello,
I'm trying to export metrics from Windows system. It seems like the metrics exporter library is generating invalid type name for the metric description. It concatenate prefix with the metric name using the backslash instead of slash what comes up with the below error.
I found the code piece that is responsible for generating metric type name. It uses the Path object which uses internally default operating system file separator. That's the reason why it's not working on the Windows.
opentelemetry-operations-java/exporters/metrics/src/main/java/com/google/cloud/opentelemetry/metric/MetricTranslator.java
Line 229 in 74a108f
I was looking for the easy work around but I couldn't find. Do you see any possibility for that?
The text was updated successfully, but these errors were encountered: