-
I've been investigating the trace ID generation logic in the Go agent and noticed that it uses 1900 as the epoch time (idEpoch = time.Date(1900, 0, 0, 0, 0, 0, 0, time.UTC)) in plugins/core/id.go, while the Java agent uses Unix epoch (1970) for the same purpose. func init() {
idEpoch = time.Date(1900, 0, 0, 0, 0, 0, 0, time.UTC)
// ...
}
func (c *IDContext) timestamp() int64 {
now := time.Since(idEpoch).Milliseconds()
// ...
} This creates inconsistency between agents: Is there a specific reason why the Go agent uses 1900 as the epoch time? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think there isn't. As from current implementation, each agent picks their logic, and backend doesn't depend on the logic of the generation. Are you doing some custom/private change to use that? |
Beta Was this translation helpful? Give feedback.
I think there isn't. As from current implementation, each agent picks their logic, and backend doesn't depend on the logic of the generation.
Are you doing some custom/private change to use that?