tools: golang.org/x/tools/internal/telemetry/export/ocagent Index | Files | Directories

package ocagent

import "golang.org/x/tools/internal/telemetry/export/ocagent"

Package ocagent adds the ability to export all telemetry to an ocagent. This keeps the compile time dependencies to zero and allows the agent to have the exporters needed for telemetry aggregation and viewing systems.

Index

Package Files

ocagent.go

func Connect Uses

func Connect(config *Config) export.Exporter

Connect creates a process specific exporter with the specified serviceName and the address of the ocagent to which it will upload its telemetry.

type Config Uses

type Config struct {
    Start   time.Time
    Host    string
    Process uint32
    Client  *http.Client
    Service string
    Address string
    Rate    time.Duration
}

func Discover Uses

func Discover() *Config

Discover finds the local agent to export to, it will return nil if there is not one running. TODO: Actually implement a discovery protocol rather than a hard coded address

Directories

PathSynopsis
wire

Package ocagent imports 13 packages (graph) and is imported by 2 packages. Updated 2019-09-20. Refresh now. Tools for package owners.