Documentation
¶
Index ¶
Constants ¶
View Source
const ( ServiceNameKey = attribute.Key("service") ServiceInstanceIDKey = attribute.Key("service_instance_id") )
View Source
const EnvPrefix = "OTEL"
Variables ¶
View Source
var ErrWrongCountOfArguments = errors.New("error wrong count of arguments")
Functions ¶
Types ¶
type Config ¶
type Config struct {
Prefix string `env:"_PREFIX" envDefault:"fl"`
Namespace string `env:"_NAMESPACE" envDefault:"none"`
ServiceName string `env:"_SERVICE_NAME" envDefault:"core"`
Version string `env:"_SERVICE_VERSION" envDefault:"v1.0.0"`
}
func GetConfigFromEnv ¶
func (*Config) GetOptions ¶
func (c *Config) GetOptions() []metric.MeterOption
type HistogramChart ¶
type HistogramChart struct {
// contains filtered or unexported fields
}
func NewHistogramChart ¶
func NewHistogramChart(histogram metric.Int64Histogram) *HistogramChart
type OTLPMetric ¶
type OTLPMetric struct {
// contains filtered or unexported fields
}
func NewOTLPMetric ¶
func NewOTLPMetric( ctx context.Context, meterProvider *sdkmetric.MeterProvider, meter metric.Meter, prefix string, ) *OTLPMetric
func (*OTLPMetric) GetMetric ¶
func (o *OTLPMetric) GetMetric() metric.Meter
func (*OTLPMetric) Shutdown ¶
func (o *OTLPMetric) Shutdown()
Click to show internal directories.
Click to hide internal directories.