serilog-contrib / serilog-sinks-grafana-loki

A Serilog sink sending log events to Grafana Loki
MIT License
201 stars 30 forks source link

Add nanosecond support for timestamps for versions prior to .NET 7 #248

Closed mishamyte closed 10 months ago

mishamyte commented 10 months ago

Discussed in https://github.com/serilog-contrib/serilog-sinks-grafana-loki/discussions/247

Originally posted by **danielhuntleyalpine** January 29, 2024 When using this package with versions earlier than `.net 7`, timestamps are published to the closest `ms` rather than the `nanosecond`. This is a request to add support for micro and nano seconds similar to how we handle .net7 and later versions. I can appreciate that the `Microsecond` and `Nanosecond` functions aren't available in earlier versions but we should still be able to obtain that information from the ticks. Any help on this would be greatly appreciated! Thanks for taking the time to consider this request.
github-actions[bot] commented 9 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue.