import "golang.org/x/tools/internal/event/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.
type Config struct { Start time.Time Host string Process uint32 Client *http.Client Service string Address string Rate time.Duration }
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
type Exporter struct {
// contains filtered or unexported fields
}
Connect creates a process specific exporter with the specified serviceName and the address of the ocagent to which it will upload its telemetry.
Path | Synopsis |
---|---|
wire |
Package ocagent imports 16 packages (graph) and is imported by 2 packages. Updated 2021-01-23. Refresh now. Tools for package owners.