Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProtocolGRPC = "grpc" ProtocolHTTPProtobuf = "http/protobuf" ProtocolPrometheus = "prometheus" ProtocolNone = "none" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Protocol string `json:"protocol,omitempty"`
Endpoint string `json:"endpoint,omitempty"`
ExportInterval time.Duration `json:"exportInterval,omitempty"`
}
Config provides a unified observability configuration which can be used to manage Knative observability behavior. Typically, this is extracted from a Kubernetes ConfigMap during application startup, and accessed via the GetConfig() method.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns a configuration with default values set.
func NewFromMap ¶
NewFromMap unpacks flat configuration values from a ConfigMap into the configuration used by different observability modules.
func NewFromMapWithPrefix ¶
type MeterProvider ¶
type MeterProvider struct {
metric.MeterProvider
// contains filtered or unexported fields
}
func NewMeterProvider ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package metricstest provides test helpers to assert OTel metrics are recorded properly.
|
Package metricstest provides test helpers to assert OTel metrics are recorded properly. |
Click to show internal directories.
Click to hide internal directories.