tag

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2020 License: Apache-2.0, BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package tag provides the labels used for telemetry throughout gopls.

Index

Constants

View Source
const (
	Inbound  = "in"
	Outbound = "out"
)

Variables

View Source
var (
	// create the tag keys we use
	Method        = event.NewStringKey("method", "")
	StatusCode    = event.NewStringKey("status.code", "")
	StatusMessage = event.NewStringKey("status.message", "")
	RPCID         = event.NewStringKey("id", "")
	RPCDirection  = event.NewStringKey("direction", "")
	File          = event.NewStringKey("file", "")
	Directory     = event.NewKey("directory", "")
	URI           = event.NewKey("URI", "")
	Package       = event.NewStringKey("package", "")
	PackagePath   = event.NewStringKey("package_path", "")
	Query         = event.NewKey("query", "")
	Snapshot      = event.NewUInt64Key("snapshot", "")
	Operation     = event.NewStringKey("operation", "")

	Position     = event.NewKey("position", "")
	Category     = event.NewStringKey("category", "")
	PackageCount = event.NewIntKey("packages", "")
	Files        = event.NewKey("files", "")
	Port         = event.NewIntKey("port", "")
	Type         = event.NewKey("type", "")
	HoverKind    = event.NewStringKey("hoverkind", "")
)
View Source
var (
	// create the stats we measure
	Started       = event.NewInt64Key("started", "Count of started RPCs.")
	ReceivedBytes = event.NewInt64Key("received_bytes", "Bytes received.")            //, unit.Bytes)
	SentBytes     = event.NewInt64Key("sent_bytes", "Bytes sent.")                    //, unit.Bytes)
	Latency       = event.NewFloat64Key("latency_ms", "Elapsed time in milliseconds") //, unit.Milliseconds)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL