Skip to content

Commit

Permalink
Update bridges/prometheus/producer.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
  • Loading branch information
dashpole and MrAlias committed Feb 14, 2024
1 parent 1a01ea9 commit beacd35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridges/prometheus/producer.go
Expand Up @@ -202,8 +202,8 @@ func convertExponentialHistogram(metrics []*dto.Metric, now time.Time) metricdat
if createdTs.IsValid() {
dp.StartTime = createdTs.AsTime()
}
if m.GetTimestampMs() != 0 {
dp.Time = time.UnixMilli(m.GetTimestampMs())
if t := m.GetTimestampMs(); t != 0 {
dp.Time = time.UnixMilli(t)
}

Check warning on line 207 in bridges/prometheus/producer.go

View check run for this annotation

Codecov / codecov/patch

bridges/prometheus/producer.go#L206-L207

Added lines #L206 - L207 were not covered by tests
otelExpHistogram.DataPoints[i] = dp
}
Expand Down

0 comments on commit beacd35

Please sign in to comment.