Documentation ¶
Overview ¶
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Index ¶
- Variables
- func Close(ctx context.Context) error
- func Initialize(_ string, logger util.Logger)
- func InitializeIfNeeded(enabled bool, version string, logger util.Logger) bool
- func LoggerFor(logger util.Logger, span *Span) util.Logger
- func MetricsCounter(subsystem string, name string, help string, logger util.Logger, ...) *prometheus.CounterVec
- func MetricsGauge(subsystem string, name string, help string, logger util.Logger, ...) *prometheus.GaugeVec
- func MetricsHistogram(subsystem string, name string, help string, logger util.Logger, ...) *prometheus.HistogramVec
- func MetricsSummary(subsystem string, name string, help string, logger util.Logger) prometheus.Summary
- func RunProcess(ctx context.Context, cmd string, path string, in io.Reader, out io.Writer, ...) (int, error)
- func RunProcessSimple(ctx context.Context, cmd string, path string, logger util.Logger) (int, string, error)
- func WrapHTTPClient(cl *http.Client) *http.Client
- type Attribute
- type CounterAndGauge
- type CounterAndHistogram
- type ErrHandler
- type Span
- func (s *Span) Attribute(k string, v any)
- func (s *Span) Attributes(attrs ...*Attribute)
- func (s *Span) Complete()
- func (s *Span) Event(name string, attrs ...*Attribute)
- func (s *Span) OnError(err error)
- func (s *Span) SetHTTPStatus(code int)
- func (s *Span) SetName(name string)
- func (s *Span) SetStatus(status string, description string)
- func (s *Span) SpanID() string
- func (s *Span) String() string
- func (s *Span) TraceID() string
Constants ¶
This section is empty.
Variables ¶
View Source
var SkipControllerMetrics = util.GetEnvBool("controller_metrics_disabled", false)
Functions ¶
func Initialize ¶
func InitializeIfNeeded ¶
func MetricsCounter ¶ added in v0.2.11
func MetricsCounter(subsystem string, name string, help string, logger util.Logger, labelNames ...string) *prometheus.CounterVec
func MetricsGauge ¶ added in v0.2.11
func MetricsHistogram ¶ added in v0.2.11
func MetricsHistogram(subsystem string, name string, help string, logger util.Logger, labelNames ...string) *prometheus.HistogramVec
func MetricsSummary ¶ added in v0.2.11
func RunProcess ¶ added in v0.2.2
func RunProcessSimple ¶ added in v0.2.2
Types ¶
type CounterAndGauge ¶ added in v0.2.11
type CounterAndGauge struct {
// contains filtered or unexported fields
}
func NewCounterAndGauge ¶ added in v0.2.11
func (*CounterAndGauge) Observe ¶ added in v0.2.11
func (x *CounterAndGauge) Observe(labelValues ...string)
type CounterAndHistogram ¶ added in v0.2.11
type CounterAndHistogram struct {
// contains filtered or unexported fields
}
func NewCounterAndHistogram ¶ added in v0.2.11
type ErrHandler ¶
type ErrHandler struct {
// contains filtered or unexported fields
}
func (*ErrHandler) Handle ¶
func (e *ErrHandler) Handle(err error)
type Span ¶
func StartAsyncSpan ¶
func (*Span) Attributes ¶
func (*Span) Complete ¶
func (s *Span) Complete()
Complete must be called, usually through a `defer` block.
func (*Span) SetHTTPStatus ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Content managed by Project Forge, see [projectforge.md] for details.
|
Content managed by Project Forge, see [projectforge.md] for details. |
Content managed by Project Forge, see [projectforge.md] for details.
|
Content managed by Project Forge, see [projectforge.md] for details. |
Click to show internal directories.
Click to hide internal directories.