-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [CT-708] Indexer track e2e latency (#1237) * fwd through message times * use the var i made * post processing stat emission * post-forwarding timestamp * pass through event type from vulcan * event type to stat emissions * test fix function calls * WIP WIP WIP * fix tests * unused import * test that kafka messages are threaded * pass through message headers verbatim * test logs for on message * short term order event types (cherry picked from commit 4daa11d) # Conflicts: # indexer/services/socks/src/lib/message-forwarder.ts
- Loading branch information
1 parent
e5841c3
commit 0697816
Showing
16 changed files
with
252 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Timestamp } from './codegen/google/protobuf/timestamp'; | ||
|
||
export const MILLIS_IN_NANOS: number = 1_000_000; | ||
export const SECONDS_IN_MILLIS: number = 1_000; | ||
export function protoTimestampToDate( | ||
protoTime: Timestamp, | ||
): Date { | ||
const timeInMillis: number = Number(protoTime.seconds) * SECONDS_IN_MILLIS + | ||
Math.floor(protoTime.nanos / MILLIS_IN_NANOS); | ||
|
||
return new Date(timeInMillis); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.