Skip to content

Commit

Permalink
fix(deps): update module github.com/mitchellh/hashstructure to v2 (op…
Browse files Browse the repository at this point in the history
…en-telemetry#37514)

#### Description

Supersedes
open-telemetry#36202

#### Link to tracking issue
Part of
open-telemetry#36112
  • Loading branch information
dashpole authored and chengchuanpeng committed Jan 27, 2025
1 parent cfb8e15 commit 6602454
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 6602454

Please sign in to comment.