Skip to content

Commit

Permalink
message
Browse files Browse the repository at this point in the history
  • Loading branch information
huyan0 committed Aug 28, 2020
1 parent 1407206 commit 18883d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion exporter/prometheusremotewriteexporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (prwe *PrwExporter) PushMetrics(ctx context.Context, md pdata.Metrics) (int
case otlp.MetricDescriptor_SUMMARY:
if err := prwe.handleSummaryMetric(tsMap, metric); err != nil {
dropped++
errs = append(errs, err.Error())
errs = append(errs, err)
}
default:
dropped++
Expand Down
2 changes: 1 addition & 1 deletion exporter/prometheusremotewriteexporter/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ func Test_PushMetrics(t *testing.T) {
checkFunc,
3,
http.StatusAccepted,
pdatautil.MetricCount(summaryBatch),
0,
false,
},
}
Expand Down
9 changes: 4 additions & 5 deletions exporter/prometheusremotewriteexporter/testutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ type combination struct {
}

var (
time1 = uint64(time.Now().UnixNano())
time2 = uint64(time.Date(1970, 1, 0, 0, 0, 0, 0, time.UTC).UnixNano())
msTime1 = int64(time1 / uint64(int64(time.Millisecond)/int64(time.Nanosecond)))
msTime2 = int64(time2 / uint64(int64(time.Millisecond)/int64(time.Nanosecond)))
testHeaders = map[string]string{"headerOne": "value1"}
time1 = uint64(time.Now().UnixNano())
time2 = uint64(time.Date(1970, 1, 0, 0, 0, 0, 0, time.UTC).UnixNano())
msTime1 = int64(time1 / uint64(int64(time.Millisecond)/int64(time.Nanosecond)))
msTime2 = int64(time2 / uint64(int64(time.Millisecond)/int64(time.Nanosecond)))

typeInt64 = "INT64"
typeMonotonicInt64 = "MONOTONIC_INT64"
Expand Down

0 comments on commit 18883d1

Please sign in to comment.