dotnet

package
v0.76.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric added in v0.22.0

type Metric map[string]interface{}

Metric is a map containing all of the keys and values for a Metric extracted from the event parser. Most metrics will have some subset of the keys defined below, but some metrics/messages will have keys that deviate from this list.

func (Metric) Count added in v0.22.0

func (m Metric) Count() int32

func (Metric) CounterType added in v0.22.0

func (m Metric) CounterType() string

func (Metric) DisplayName added in v0.22.0

func (m Metric) DisplayName() string

func (Metric) DisplayRateTimeScale added in v0.22.0

func (m Metric) DisplayRateTimeScale() string

func (Metric) DisplayUnits added in v0.22.0

func (m Metric) DisplayUnits() string

func (Metric) Increment added in v0.22.0

func (m Metric) Increment() float64

func (Metric) IntervalSec added in v0.22.0

func (m Metric) IntervalSec() float32

func (Metric) Max added in v0.22.0

func (m Metric) Max() float64

func (Metric) Mean added in v0.22.0

func (m Metric) Mean() float64

func (Metric) Min added in v0.22.0

func (m Metric) Min() float64

func (Metric) Name added in v0.22.0

func (m Metric) Name() string

func (Metric) Series added in v0.22.0

func (m Metric) Series() string

func (Metric) StandardDeviation added in v0.22.0

func (m Metric) StandardDeviation() float64

type MetricsConsumer added in v0.23.0

type MetricsConsumer func([]Metric)

MetricsConsumer is a function that accepts a slice of Metrics. Parser has a member consumer function, used to send Metrics as they are created.

type Parser added in v0.22.0

type Parser struct {
	// contains filtered or unexported fields
}

Parser encapsulates all of the functionality to parse an IPC stream.

func NewParser added in v0.22.0

func NewParser(rdr io.Reader, mc MetricsConsumer, bw network.BlobWriter, logger *zap.Logger) *Parser

NewParser accepts an io.Reader, a MetricsConsumer, and logger, and returns a Parser for processing an IPC stream.

func (*Parser) ParseAll added in v0.22.0

func (p *Parser) ParseAll(ctx context.Context) error

ParseAll parses all of the blocks until an error occurs or the context is cancelled.

func (*Parser) ParseIPC added in v0.22.0

func (p *Parser) ParseIPC() error

ParseIPC parses the IPC response from the initial request to a dotnet process.

func (*Parser) ParseNettrace added in v0.22.0

func (p *Parser) ParseNettrace() error

ParseNettrace parses the nettrace magic message.

type RequestWriter

type RequestWriter struct {
	// contains filtered or unexported fields
}

RequestWriter submits the initial request to the dotnet diagnostics backend, after which it starts sending us metrics at the specified interval. ByteBuffer is swappable for testing. For docs on the protocol, see https://github.com/dotnet/diagnostics/blob/master/documentation/design-docs/ipc-protocol.md

func NewRequestWriter

func NewRequestWriter(w io.Writer, intervalSec int, providerNames ...string) *RequestWriter

func (*RequestWriter) SendRequest

func (w *RequestWriter) SendRequest() error

Jump to

Keyboard shortcuts

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