metrics

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package metrics exports some utility functions for handling prometheus metrics from ConditionOrc

Index

Constants

This section is empty.

Variables

View Source
var (
	ConditionQueued    *prometheus.CounterVec
	ConditionCompleted *prometheus.CounterVec
	PublishErrors      *prometheus.CounterVec
)

Functions

func APICallEpilog

func APICallEpilog(start time.Time, endpoint string, responseCode int)

APICallEpilog observes the results and latency of an API call

func DependencyError

func DependencyError(name, operation string)

DependencyError provides a convenience method to hide some prometheus implementation details.

func ListenAndServe added in v0.0.2

func ListenAndServe()

ListenAndServeMetrics exposes prometheus metrics as /metrics on port 9090

func RegisterSpanEvent added in v0.0.3

func RegisterSpanEvent(span trace.Span, serverID, conditionID, conditionKind, event string)

RegisterSpanEvent adds a span event along with the given attributes.

event here is arbitrary and can be in the form of strings like - publishCondition, updateCondition etc

Types

This section is empty.

Jump to

Keyboard shortcuts

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