1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/exporters/prometheus/testdata
Damien Mathieu bfaff3a097
Sanitize metric names in the prometheus exporter (#3212)
* sanitize metric names in the prometheus exporter

* add changelog entry

* fix now invalid comment

* replace sanitizeName algorithm with one based on strings.Map

* check that digits as first characters are replaced

* Update exporters/prometheus/exporter.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* add missing utf8 import

* add explicit tests for sanitizeName

* fix testdata with digit prepend

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
2022-09-22 07:23:16 -07:00
..
counter.txt bugfix: fix prometheus attributes other than string (#3190) 2022-09-19 10:13:21 -07:00
gauge.txt Merge metric SDK development branch "new_sdk/main" into "main" (#3175) 2022-09-15 18:41:24 -07:00
histogram.txt Merge metric SDK development branch "new_sdk/main" into "main" (#3175) 2022-09-15 18:41:24 -07:00
sanitized_labels.txt Merge metric SDK development branch "new_sdk/main" into "main" (#3175) 2022-09-15 18:41:24 -07:00
sanitized_names.txt Sanitize metric names in the prometheus exporter (#3212) 2022-09-22 07:23:16 -07:00