Skip to content

Commit

Permalink
updated test in prometheusexporter to use updated function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-shopify committed May 26, 2022
1 parent c8c5af8 commit cba2de1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions exporter/prometheusexporter/collector_test.go
Expand Up @@ -108,9 +108,9 @@ func TestConvertDoubleHistogramExemplar(t *testing.T) {
hd := metric.Histogram().DataPoints().AppendEmpty()

bounds := []float64{5, 25, 90}
hd.SetExplicitBounds(bounds)
hd.SetMExplicitBounds(bounds)
bc := []uint64{2, 35, 70}
hd.SetBucketCounts(bc)
hd.SetMBucketCounts(bc)

exemplarTs, _ := time.Parse("unix", "Mon Jan _2 15:04:05 MST 2006")
exemplars := []prometheus.Exemplar{
Expand Down
2 changes: 1 addition & 1 deletion exporter/prometheusexporter/go.mod
Expand Up @@ -6,7 +6,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.52.0
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourcetotelemetry v0.52.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver v0.52.0
github.com/prometheus/client_golang v1.12.2
github.com/prometheus/client_golang v1.12.2-0.20220318110013-3bc8f2c651ff
github.com/prometheus/client_model v0.2.0
github.com/prometheus/common v0.34.0
github.com/prometheus/prometheus v0.35.1-0.20220503184552-2381d7be5731
Expand Down

0 comments on commit cba2de1

Please sign in to comment.