publisher

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EMFPublisher

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

EMFPublisher is a MetricPublisher implementation that publishes metrics to stdout using EMF format.

func NewEMFPublisher

func NewEMFPublisher(namespace string, serializer metrics.Serializer) *EMFPublisher

NewEMFPublisher creates a new EMFPublisher with the specified namespace and serializer.

func (*EMFPublisher) PostRequestMetrics

func (p *EMFPublisher) PostRequestMetrics(data *metrics.MetricData) error

PostRequestMetrics publishes the request metrics to stdout using EMF format.

func (*EMFPublisher) PostStreamMetrics

func (p *EMFPublisher) PostStreamMetrics(data *metrics.MetricData) error

PostStreamMetrics publishes the stream metrics to stdout using EMF format.

func (*EMFPublisher) RemoveAdditionalDimension

func (p *EMFPublisher) RemoveAdditionalDimension(key string)

func (*EMFPublisher) SetAdditionalDimension

func (p *EMFPublisher) SetAdditionalDimension(key string, value string)

Jump to

Keyboard shortcuts

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