Browse Source

Loki: Adds comment explaining usage of RFC3339Nano string (#17872)

* Loki: Adds comment explaining usage of RFC3339Nano string
kay delaney 6 years ago
parent
commit
1c291e26f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/plugins/datasource/loki/datasource.ts

+ 1 - 1
public/app/plugins/datasource/loki/datasource.ts

@@ -310,7 +310,7 @@ export class LokiDatasource extends DataSourceApi<LokiQuery, LokiOptions> {
       return {
       return {
         ...commontTargetOptons,
         ...commontTargetOptons,
         start: timeEpochNs - contextTimeBuffer,
         start: timeEpochNs - contextTimeBuffer,
-        end: row.timestamp,
+        end: row.timestamp, // using RFC3339Nano format to avoid precision loss
         direction,
         direction,
       };
       };
     } else {
     } else {