| 1 | // Copyright 2024 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package jsonrpc2scip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/jsonrpc2`/ |
| 6 | |
| 7 | import "golang.org/x/tools/internal/event/keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/" |
| 8 | |
| 9 | // These keys are used for creating labels to instrument jsonrpc2 events. |
| 10 | var ( |
| 11 | Methodscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/jsonrpc2`/Method. = keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/.NewStringscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/NewString().("method", "") |
| 12 | RPCIDscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/jsonrpc2`/RPCID. = keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/.NewStringscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/NewString().("id", "") |
| 13 | RPCDirectionscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/jsonrpc2`/RPCDirection. = keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/.NewStringscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/NewString().("direction", "") |
| 14 | Startedscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/jsonrpc2`/Started. = keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/.NewIntscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/NewInt().("started", "count of started RPCs") |
| 15 | SentBytesscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/jsonrpc2`/SentBytes. = keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/.NewIntscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/NewInt().("sent_bytes", "bytes sent") |
| 16 | ReceivedBytesscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/jsonrpc2`/ReceivedBytes. = keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/.NewIntscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/NewInt().("received_bytes", "bytes received") |
| 17 | StatusCodescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/jsonrpc2`/StatusCode. = keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/.NewStringscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/NewString().("status.code", "") |
| 18 | Latencyscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/jsonrpc2`/Latency. = keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/.NewFloatscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/NewFloat().("latency", "elapsed time in seconds") |
| 19 | ) |
| 20 | |
| 21 | const ( |
| 22 | Inboundscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/jsonrpc2`/Inbound. = "in" |
| 23 | Outboundscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/jsonrpc2`/Outbound. = "out" |
| 24 | ) |