config

package
v0.0.0-...-0be08e2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OTelIngestTokenData atomic.Value

Functions

func GetOTelIngestToken

func GetOTelIngestToken() string

func SetOTelIngestToken

func SetOTelIngestToken(value string)

Types

type OTelConfig

type OTelConfig struct {
	MetricNamePrefix           string
	Host                       string
	MetricsPort                int
	TracePort                  int
	MetricsURLPath             string
	TraceURLPath               string
	PoolName                   string
	ResourceType               string
	Enabled                    bool
	SkipCalStateLog            bool
	ResolutionTimeInSec        int
	ExporterTimeout            int
	UseTls                     bool
	TLSCertPath                string
	OtelMetricGRPC             bool
	OtelTraceGRPC              bool
	OTelErrorReportingInterval int
	EnableRetry                bool
}

OTelConfig represent configuration related to OTEL collector to export data

var OTelConfigData *OTelConfig

func (*OTelConfig) Dump

func (config *OTelConfig) Dump()

func (*OTelConfig) PopulateMetricNamePrefix

func (config *OTelConfig) PopulateMetricNamePrefix(metricName string) string

Jump to

Keyboard shortcuts

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