-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from GaloisInc/sc/cn-lsp-telemetry
client, server: record basic telemetry events
- Loading branch information
Showing
7 changed files
with
200 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
open Base | ||
|
||
module EventData = struct | ||
let source : string = "cn-lsp-server" | ||
|
||
(* Note: when creating (non-singleton) constructors of any sum types in this | ||
module, make them contain record data (e.g. [Foo of { thing : int }]), | ||
rather than bare values (e.g. [Foo of int]). This will hopefully simplify | ||
third-party consumption of any JSON-serialized values of this type. *) | ||
|
||
type event_type = | ||
| ServerStart | ||
| ServerStop | ||
| BeginVerify of { file : string } | ||
| EndVerify of { file : string } | ||
| OpenFile of { file : string } | ||
| CloseFile of { file : string } | ||
[@@deriving eq, show, yojson] | ||
|
||
type event_result = | ||
| Success | ||
| Failure | ||
[@@deriving eq, show, yojson] | ||
|
||
type t = | ||
{ event_type : event_type | ||
; event_result : event_result option | ||
} | ||
[@@deriving eq, show, yojson] | ||
end | ||
|
||
module ProfileData = struct | ||
type t = { id : string } [@@deriving eq, show, yojson] | ||
end |
Oops, something went wrong.