apple / swift-distributed-tracing

Instrumentation library for Swift server applications
https://swiftpackageindex.com/apple/swift-distributed-tracing/main/documentation/tracing
Apache License 2.0
224 stars 34 forks source link

Use nanosecondsSinceEpoch in `SpanEvent` #117

Closed slashmo closed 1 year ago

slashmo commented 1 year ago

In #114 we added nanosecondsSinceEpoch to the TracerInstant. SpanEvent, however, still uses millisecondsSinceEpoch. We should also base SpanEvent on nanoseconds, exposing the same convenience millisecondsSinceEpoch accessor we do with TracerInstant.