Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ExporterConfig `json:"exporterConfig"`
// If false, use a no-op tracer. All other fields are ignored.
Enabled bool `json:"enabled"`
// The fraction of traces to sample.
// If >= 1 always samples.
// If <= 0 never samples.
TraceSampleRate float64 `json:"traceSampleRate"`
}
type ExporterConfig ¶
type ExporterConfig struct {
Type ExporterType `json:"type"`
// Endpoint to send metrics to
Endpoint string `json:"endpoint"`
// Headers to send with metrics
Headers map[string]string `json:"headers"`
}
type ExporterType ¶
type ExporterType byte
const ( GRPC ExporterType = iota + 1 HTTP )
func ExporterTypeFromString ¶
func ExporterTypeFromString(exporterTypeStr string) (ExporterType, error)
func (ExporterType) MarshalJSON ¶
func (t ExporterType) MarshalJSON() ([]byte, error)
func (ExporterType) String ¶
func (t ExporterType) String() string
Click to show internal directories.
Click to hide internal directories.