kspan icon indicating copy to clipboard operation
kspan copied to clipboard

kspan emits events in UTC

Open felipecruz91 opened this issue 4 years ago • 1 comments

Hi,

kspan emits events in UTC, e.g:

{"ref": "replicaset:default/nginx-6799fc88d8", "name": "Deployment.ScalingReplicaSet", "start": "15:27:24.000", "end": "15:27:24.000"}

This causes traces not being shown unless the Loopback dropdown is set to "Last 2 Hours".

felipecruz91 avatar Mar 22 '21 17:03 felipecruz91

Hi, I was hesitant to comment here because my own timezone was UTC, but since Sunday we've been in BST and I haven't noticed any problem viewing spans. They are emitted on my Kubernetes cluster in UTC and displayed in Jaeger in my local timezone.

I believe that emitting timestamps in UTC is correct; this is the one thing guaranteed to be consistent for all actors. Rendering the time in local timezone is a job for the final UI.

Maybe something is interfering with Jaeger understanding your local timezone?

bboreham avatar Mar 29 '21 16:03 bboreham