Skip to content

Commit

Permalink
merge conflict resolve and test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-shopify committed Sep 16, 2022
1 parent 4a13dd5 commit bf2ed93
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions exporter/prometheusexporter/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ func TestConvertDoubleHistogramExemplar(t *testing.T) {
metric.SetUnit("T")

// initialize empty datapoint
histogramDataPoint := metric.Histogram().DataPoints().AppendEmpty()
histogramDataPoint := metric.SetEmptyHistogram().DataPoints().AppendEmpty()

bounds := pcommon.NewImmutableFloat64Slice([]float64{5, 25, 90})
histogramDataPoint.SetExplicitBounds(bounds)
bc := pcommon.NewImmutableUInt64Slice([]uint64{2, 35, 70})
Expand All @@ -115,13 +116,13 @@ func TestConvertDoubleHistogramExemplar(t *testing.T) {
var tBytes [16]byte
testTraceID, _ := hex.DecodeString("641d68e314a58152cc2581e7663435d1")
copy(tBytes[:], testTraceID)
traceID := pcommon.NewTraceID(tBytes)
traceID := pcommon.TraceID(tBytes)
promExporterExemplars.SetTraceID(traceID)

var sBytes [8]byte
testSpanID, _ := hex.DecodeString("7436d6ac76178623")
copy(sBytes[:], testSpanID)
spanID := pcommon.NewSpanID(sBytes)
spanID := pcommon.SpanID(sBytes)
promExporterExemplars.SetSpanID(spanID)

exemplarTs, _ := time.Parse("unix", "Mon Jan _2 15:04:05 MST 2006")
Expand Down

0 comments on commit bf2ed93

Please sign in to comment.