Documentation ¶
Index ¶
- func AppendFrame(snapshot *tp.Snapshot)
- func ConvertToPublicType(in *tp.Snapshot) (*deeptp.Snapshot, error)
- func GenerateSnapshot(index int, options *GenerateOptions) *tp.Snapshot
- func GenerateTracePoint(index int, watches []string, options *GenerateOptions) *tp.TracePointConfig
- func GetCounterValue(metric prometheus.Counter) (float64, error)
- func GetCounterVecValue(metric *prometheus.CounterVec, label string) (float64, error)
- func GetGaugeValue(metric prometheus.Gauge) (float64, error)
- func GetGaugeVecValue(metric *prometheus.GaugeVec, labels ...string) (float64, error)
- func MakeSnapshotID() []byte
- func RandomString() string
- func RandomStringLen(length int) string
- func ValidSnapshotID(snapshotID []byte) []byte
- type GenerateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendFrame ¶
func GenerateSnapshot ¶
func GenerateSnapshot(index int, options *GenerateOptions) *tp.Snapshot
func GenerateTracePoint ¶
func GenerateTracePoint(index int, watches []string, options *GenerateOptions) *tp.TracePointConfig
func GetCounterValue ¶
func GetCounterValue(metric prometheus.Counter) (float64, error)
func GetCounterVecValue ¶
func GetCounterVecValue(metric *prometheus.CounterVec, label string) (float64, error)
func GetGaugeValue ¶
func GetGaugeValue(metric prometheus.Gauge) (float64, error)
func GetGaugeVecValue ¶
func GetGaugeVecValue(metric *prometheus.GaugeVec, labels ...string) (float64, error)
func MakeSnapshotID ¶
func MakeSnapshotID() []byte
func RandomString ¶
func RandomString() string
func RandomStringLen ¶
func ValidSnapshotID ¶
Types ¶
type GenerateOptions ¶
type GenerateOptions struct { Id []byte Attrs map[string]interface{} Resource map[string]interface{} AllResource bool AllAttrs bool AllVarTypes bool AsyncFrame bool TranspiledFrame bool ColumnFrame bool NoVars bool RandomStrings bool ServiceName string DurationNanos uint64 LogMsg bool RandomDuration bool }
Click to show internal directories.
Click to hide internal directories.