Skip to content

Integer division causes loss of precision on trace span durations #720

@SpencerTorres

Description

@SpencerTorres

The OTel exporter defaults to nanosecond precision, but Grafana requires that span durations be in milliseconds. This causes a lot of rows to be returned with a 0 duration, and spans that run under 1ms to be ruined in the trace visualization.

Broken:
span durations under 1ms are showing 0us

Correct:
correct spans, with results under 1ms

See in the correct result how the spans are correctly showing under 1ms

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions