Documentation ¶
Index ¶
- Constants
- type Exporter
- func (e *Exporter) Aggregation(k metric.InstrumentKind) metric.Aggregation
- func (e *Exporter) Export(ctx context.Context, data *metricdata.ResourceMetrics) error
- func (e *Exporter) ForceFlush(ctx context.Context) error
- func (e *Exporter) MarshalLog() interface{}
- func (e *Exporter) Shutdown(ctx context.Context) error
- func (e *Exporter) Temporality(k metric.InstrumentKind) metricdata.Temporality
- type Option
Constants ¶
const ( // DefaultPort is the default HTTP port of the collector. DefaultPort uint16 = 4318 // DefaultHost is the host address the client will attempt // connect to if no collector address is provided. DefaultHost string = "localhost" // DefaultPath is a default URL path for endpoint that receives metrics. DefaultPath string = "/v1/metrics" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
func (*Exporter) Aggregation ¶
func (e *Exporter) Aggregation(k metric.InstrumentKind) metric.Aggregation
Aggregation returns the Aggregation to use for an instrument kind.
func (*Exporter) Export ¶
func (e *Exporter) Export(ctx context.Context, data *metricdata.ResourceMetrics) error
func (*Exporter) ForceFlush ¶
ForceFlush flushes any metric data held by an exporter.
This method returns an error if called after Shutdown. This method returns an error if the method is canceled by the passed context.
This method is safe to call concurrently.
func (*Exporter) MarshalLog ¶
func (e *Exporter) MarshalLog() interface{}
MarshalLog is the marshaling function used by the logging system to represent this Exporter.
func (*Exporter) Shutdown ¶
Shutdown flushes all metric data held by an exporter and releases any held computational resources.
This method returns an error if called after Shutdown. This method returns an error if the method is canceled by the passed context.
This method is safe to call concurrently.
func (*Exporter) Temporality ¶
func (e *Exporter) Temporality(k metric.InstrumentKind) metricdata.Temporality
Temporality returns the Temporality to use for an instrument kind.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}