You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we are exposing OTEL metrics onto /v1/metrics endpoint. Metrics contains timeUnixNano field.
and value of timeUnixNano is epoch 16 digit. So when otel-collector-contrib is receiving and exporting it to logging i can see 1970-01-01 as timestamp in logs AS SHOWN IN BELOW IMAGE.
when i modify otel json and changed timeUnixNano from 16 digit to 19 digit then it is working fine. Could someone please help me understanding how can i specify epoch timestamp layout/format ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
we are exposing OTEL metrics onto /v1/metrics endpoint. Metrics contains timeUnixNano field.
and value of timeUnixNano is epoch 16 digit. So when otel-collector-contrib is receiving and exporting it to logging i can see 1970-01-01 as timestamp in logs AS SHOWN IN BELOW IMAGE.
when i modify otel json and changed timeUnixNano from 16 digit to 19 digit then it is working fine. Could someone please help me understanding how can i specify epoch timestamp layout/format ?
Beta Was this translation helpful? Give feedback.
All reactions