telemetry

package
v0.0.0-...-b2a0db9 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package telemetry provides the hooks and adapters to allow use of telemetry throughout gopls.

Index

Constants

View Source
const (
	// create the tag keys we use
	Method        = tag.Key("method")
	StatusCode    = tag.Key("status.code")
	StatusMessage = tag.Key("status.message")
	RPCID         = tag.Key("id")
	RPCDirection  = tag.Key("direction")
	File          = tag.Key("file")
	Package       = tag.Key("package")
)
View Source
const (
	Inbound  = "in"
	Outbound = "out"
)

Variables

View Source
var (
	// create the stats we measure
	Started       = stats.Int64("started", "Count of started RPCs.", stats.UnitDimensionless)
	ReceivedBytes = stats.Int64("received_bytes", "Bytes received.", stats.UnitBytes)
	SentBytes     = stats.Int64("sent_bytes", "Bytes sent.", stats.UnitBytes)
	Latency       = stats.Float64("latency_ms", "Elapsed time in milliseconds", stats.UnitMilliseconds)
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package log is a context based logging package, designed to interact well with both the lsp protocol and the other telemetry packages.
Package log is a context based logging package, designed to interact well with both the lsp protocol and the other telemetry packages.
Package metric aggregates stats into metrics that can be exported.
Package metric aggregates stats into metrics that can be exported.
Package ocagent adds the ability to export all telemetry to an ocagent.
Package ocagent adds the ability to export all telemetry to an ocagent.
Package stats provides support for recording telemetry statistics.
Package stats provides support for recording telemetry statistics.
Package tag provides support for telemetry tagging.
Package tag provides support for telemetry tagging.
Package tag adds support for telemetry tracins.
Package tag adds support for telemetry tracins.
Package worker provides a very simple mechanism to allow telemetry packages to work cooperatively and efficiently.
Package worker provides a very simple mechanism to allow telemetry packages to work cooperatively and efficiently.

Jump to

Keyboard shortcuts

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