tools: golang.org/x/tools/internal/lsp/telemetry Index | Files

package telemetry

import "golang.org/x/tools/internal/lsp/telemetry"

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

Index

Package Files

telemetry.go

Constants

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")
    URI           = tag.Key("URI")
    Package       = tag.Key("package")
    PackagePath   = tag.Key("package_path")
)
const (
    Inbound  = "in"
    Outbound = "out"
)

Variables

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

Package telemetry imports 3 packages (graph) and is imported by 15 packages. Updated 2019-10-14. Refresh now. Tools for package owners.