Skip to content

Commit 18b114b

Browse files
fix(deps): update module github.com/prometheus/otlptranslator to v1 (#7358)
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more [here](https://redirect.github.com/renovatebot/renovate/discussions/37842). This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [github.com/prometheus/otlptranslator](https://redirect.github.com/prometheus/otlptranslator) | `v0.0.2` -> `v1.0.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fotlptranslator/v1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fotlptranslator/v0.0.2/v1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>prometheus/otlptranslator (github.com/prometheus/otlptranslator)</summary> ### [`v1.0.0`](https://redirect.github.com/prometheus/otlptranslator/releases/tag/v1.0.0) [Compare Source](https://redirect.github.com/prometheus/otlptranslator/compare/v0.0.2...v1.0.0) #### ⚠️ Breaking changes ⚠️ - Label names that start with a single Underscore (`_`) character are no longer prefixed with the word `key` during translation. Folks who depend on such behavior can re-enable it by setting `LabelNamer.UnderscoreLabelSanitization = true`. [#&#8203;55](https://redirect.github.com/prometheus/otlptranslator/pull/55) - Labels that have multiple underscores in sequence are now deduplicated if UTF-8 isn't allowed. Folks who depend on such behavior can re-enable it by setting `LabelNamer.PreserveMultipleUnderscores = true`. Be aware that if `UTF8Allowed` is set to true, multiple underscores are preserved even if `PreserveMultipleUnderscores == false`. [#&#8203;58](https://redirect.github.com/prometheus/otlptranslator/pull/58) #### Bug fixes - Error is returned if the result of a translation is a string consisting of underscores only. [#&#8203;56](https://redirect.github.com/prometheus/otlptranslator/pull/56) #### Performance - Remove usage of regexp. [#&#8203;59](https://redirect.github.com/prometheus/otlptranslator/pull/59) **Full Changelog**: <prometheus/otlptranslator@v0.0.2...v1.0.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/open-telemetry/opentelemetry-go). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45Ny4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjk3LjEwIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJTa2lwIENoYW5nZWxvZyIsImRlcGVuZGVuY2llcyJdfQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: dmathieu <[email protected]>
1 parent 7e4006a commit 18b114b

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

exporters/prometheus/exporter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,7 @@ func TestEscapingErrorHandling(t *testing.T) {
17761776
name: "bad namespace",
17771777
namespace: "$%^&",
17781778
counterName: "foo",
1779-
expectNewErr: `normalization for label name "$%^&" resulted in invalid name "____"`,
1779+
expectNewErr: `normalization for label name "$%^&" resulted in invalid name "_"`,
17801780
},
17811781
{
17821782
name: "good namespace, names should be escaped",

exporters/prometheus/go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/prometheus/client_golang v1.23.2
1111
github.com/prometheus/client_model v0.6.2
1212
github.com/prometheus/common v0.66.1
13-
github.com/prometheus/otlptranslator v0.0.2
13+
github.com/prometheus/otlptranslator v1.0.0
1414
github.com/stretchr/testify v1.11.1
1515
go.opentelemetry.io/otel v1.38.0
1616
go.opentelemetry.io/otel/metric v1.38.0
@@ -27,7 +27,6 @@ require (
2727
github.com/go-logr/logr v1.4.3 // indirect
2828
github.com/go-logr/stdr v1.2.2 // indirect
2929
github.com/google/uuid v1.6.0 // indirect
30-
github.com/grafana/regexp v0.0.0-20250905093917-f7b3be9d1853 // indirect
3130
github.com/kylelemons/godebug v1.1.0 // indirect
3231
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
3332
github.com/pmezard/go-difflib v1.0.0 // indirect

exporters/prometheus/go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
1313
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
1414
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
1515
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
16-
github.com/grafana/regexp v0.0.0-20250905093917-f7b3be9d1853 h1:cLN4IBkmkYZNnk7EAJ0BHIethd+J6LqxFNw5mSiI2bM=
17-
github.com/grafana/regexp v0.0.0-20250905093917-f7b3be9d1853/go.mod h1:+JKpmjMGhpgPL+rXZ5nsZieVzvarn86asRlBg4uNGnk=
1816
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
1917
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
2018
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
@@ -31,8 +29,8 @@ github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNw
3129
github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE=
3230
github.com/prometheus/common v0.66.1 h1:h5E0h5/Y8niHc5DlaLlWLArTQI7tMrsfQjHV+d9ZoGs=
3331
github.com/prometheus/common v0.66.1/go.mod h1:gcaUsgf3KfRSwHY4dIMXLPV0K/Wg1oZ8+SbZk/HH/dA=
34-
github.com/prometheus/otlptranslator v0.0.2 h1:+1CdeLVrRQ6Psmhnobldo0kTp96Rj80DRXRd5OSnMEQ=
35-
github.com/prometheus/otlptranslator v0.0.2/go.mod h1:P8AwMgdD7XEr6QRUJ2QWLpiAZTgTE2UYgjlu3svompI=
32+
github.com/prometheus/otlptranslator v1.0.0 h1:s0LJW/iN9dkIH+EnhiD3BlkkP5QVIUVEoIwkU+A6qos=
33+
github.com/prometheus/otlptranslator v1.0.0/go.mod h1:vRYWnXvI6aWGpsdY/mOT/cbeVRBlPWtBNDb7kGR3uKM=
3634
github.com/prometheus/procfs v0.17.0 h1:FuLQ+05u4ZI+SS/w9+BWEM2TXiHKsUQ9TADiRH7DuK0=
3735
github.com/prometheus/procfs v0.17.0/go.mod h1:oPQLaDAMRbA+u8H5Pbfq+dl3VDAvHxMUOVhe0wYB2zw=
3836
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=

0 commit comments

Comments
 (0)