Skip to content

Commit

Permalink
fix(deps): update module github.com/mitchellh/hashstructure to v2 (#3…
Browse files Browse the repository at this point in the history
…7514)

#### Description

Supersedes
#36202

#### Link to tracking issue
Part of
#36112
  • Loading branch information
dashpole authored Jan 27, 2025
1 parent c7921b5 commit f0086e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion receiver/googlecloudspannerreceiver/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22.0
require (
cloud.google.com/go/spanner v1.73.0
github.com/ReneKroon/ttlcache/v2 v2.11.0
github.com/mitchellh/hashstructure v1.1.0
github.com/mitchellh/hashstructure/v2 v2.0.2
github.com/stretchr/testify v1.10.0
go.opentelemetry.io/collector/component v0.118.1-0.20250123125445-24f88da7b583
go.opentelemetry.io/collector/component/componenttest v0.118.1-0.20250123125445-24f88da7b583
Expand Down
4 changes: 2 additions & 2 deletions receiver/googlecloudspannerreceiver/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"
"unicode/utf8"

"github.com/mitchellh/hashstructure"
"github.com/mitchellh/hashstructure/v2"
"go.opentelemetry.io/collector/pdata/pcommon"
"go.opentelemetry.io/collector/pdata/pmetric"

Expand Down Expand Up @@ -177,7 +177,7 @@ func (mdp *MetricsDataPoint) TruncateQueryText(length int) {
}

func (mdp *MetricsDataPoint) hash() (string, error) {
hashedData, err := hashstructure.Hash(mdp.toDataForHashing(), nil)
hashedData, err := hashstructure.Hash(mdp.toDataForHashing(), hashstructure.FormatV1, nil)
if err != nil {
return "", err
}
Expand Down

0 comments on commit f0086e6

Please sign in to comment.