Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.15.6
type Config struct {
ExporterConfig `json:"exporterConfig"`
// The fraction of traces to sample.
// If >= 1 always samples.
// If <= 0 never samples.
TraceSampleRate float64 `json:"traceSampleRate"`
AppName string `json:"appName"`
Version string `json:"version"`
}
type ExporterConfig ¶ added in v0.15.6
type ExporterConfig struct {
Type ExporterType `json:"type"`
// Endpoint to send metrics to. If empty, the default endpoint will be used.
Endpoint string `json:"endpoint"`
// Headers to send with metrics
Headers map[string]string `json:"headers"`
// If true, don't use TLS
Insecure bool `json:"insecure"`
}
type ExporterType ¶ added in v0.15.6
type ExporterType byte
const ( Disabled ExporterType = iota GRPC HTTP )
func ExporterTypeFromString ¶ added in v0.15.6
func ExporterTypeFromString(exporterTypeStr string) (ExporterType, error)
func (ExporterType) MarshalJSON ¶ added in v0.15.6
func (t ExporterType) MarshalJSON() ([]byte, error)
func (ExporterType) String ¶ added in v0.15.6
func (t ExporterType) String() string
func (*ExporterType) UnmarshalJSON ¶ added in v0.15.6
func (t *ExporterType) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.