Trace's Duration is empty

Hi,

Trace’s duration field is empty, despite when i check trace details duration is recorded.
See attached image:

I’m using Open telemetry python plugin, and Graphana Agent in version grafana/agent:v0.27.1.

Can this be somehow fixed?

I would like to use this field to plot chart of traces over time.

I think this is an issue with the resolution of the duration field. In the search response, we set the the duration in milliseconds. But if your trace is shorter than 1ms, it will be probably be set to 0ms. The UI interprets this as no duration → the duration field is empty.

Are all your traces quicker than 1ms? Can you confirm slower traces have a correct duration field set?

1 Like

@koenraad
Thank you, indeed duration was too long, when we added other traces we can see Duration now.