Documentation ¶
Index ¶
- Constants
- func NewTaggedMetricsScope() (*TaggedScope, io.Closer, *CapturingStatsReporter)
- func NewWorkflowServiceWrapper(service workflowserviceclient.Interface, scope tally.Scope) workflowserviceclient.Interface
- func WrapScope(isReplay *bool, scope tally.Scope, clock Clock) tally.Scope
- type CapturedCount
- type CapturedGauge
- type CapturedHistogramDurationSamples
- type CapturedHistogramValueSamples
- type CapturedTimer
- type CapturingStatsReporter
- func (r *CapturingStatsReporter) Capabilities() tally.Capabilities
- func (c *CapturingStatsReporter) Counts() []CapturedCount
- func (r *CapturingStatsReporter) Flush()
- func (c *CapturingStatsReporter) Gauges() []CapturedGauge
- func (c *CapturingStatsReporter) HistogramDurationSamples() []CapturedHistogramDurationSamples
- func (c *CapturingStatsReporter) HistogramValueSamples() []CapturedHistogramValueSamples
- func (r *CapturingStatsReporter) ReportCounter(name string, tags map[string]string, value int64)
- func (r *CapturingStatsReporter) ReportGauge(name string, tags map[string]string, value float64)
- func (r *CapturingStatsReporter) ReportHistogramDurationSamples(name string, tags map[string]string, buckets tally.Buckets, ...)
- func (r *CapturingStatsReporter) ReportHistogramValueSamples(name string, tags map[string]string, buckets tally.Buckets, ...)
- func (r *CapturingStatsReporter) ReportTimer(name string, tags map[string]string, value time.Duration)
- func (r *CapturingStatsReporter) Reporting() bool
- func (r *CapturingStatsReporter) Tagging() bool
- func (c *CapturingStatsReporter) Timers() []CapturedTimer
- type Clock
- type RealClock
- type TaggedScope
Constants ¶
const ( CadenceMetricsPrefix = "cadence-" WorkflowStartCounter = CadenceMetricsPrefix + "workflow-start" WorkflowCompletedCounter = CadenceMetricsPrefix + "workflow-completed" WorkflowCanceledCounter = CadenceMetricsPrefix + "workflow-canceled" WorkflowFailedCounter = CadenceMetricsPrefix + "workflow-failed" WorkflowContinueAsNewCounter = CadenceMetricsPrefix + "workflow-continue-as-new" WorkflowEndToEndLatency = CadenceMetricsPrefix + "workflow-endtoend-latency" // measure workflow execution from start to close WorkflowGetHistoryCounter = CadenceMetricsPrefix + "workflow-get-history-total" WorkflowGetHistoryFailedCounter = CadenceMetricsPrefix + "workflow-get-history-failed" WorkflowGetHistorySucceedCounter = CadenceMetricsPrefix + "workflow-get-history-succeed" WorkflowGetHistoryLatency = CadenceMetricsPrefix + "workflow-get-history-latency" WorkflowSignalWithStartCounter = CadenceMetricsPrefix + "workflow-signal-with-start" DecisionTimeoutCounter = CadenceMetricsPrefix + "decision-timeout" DecisionPollCounter = CadenceMetricsPrefix + "decision-poll-total" DecisionPollFailedCounter = CadenceMetricsPrefix + "decision-poll-failed" DecisionPollTransientFailedCounter = CadenceMetricsPrefix + "decision-poll-transient-failed" DecisionPollNoTaskCounter = CadenceMetricsPrefix + "decision-poll-no-task" DecisionPollSucceedCounter = CadenceMetricsPrefix + "decision-poll-succeed" DecisionPollLatency = CadenceMetricsPrefix + "decision-poll-latency" // measure succeed poll request latency DecisionExecutionFailedCounter = CadenceMetricsPrefix + "decision-execution-failed" DecisionExecutionLatency = CadenceMetricsPrefix + "decision-execution-latency" DecisionResponseFailedCounter = CadenceMetricsPrefix + "decision-response-failed" DecisionResponseLatency = CadenceMetricsPrefix + "decision-response-latency" DecisionTaskPanicCounter = CadenceMetricsPrefix + "decision-task-panic" DecisionTaskCompletedCounter = CadenceMetricsPrefix + "decision-task-completed" DecisionTaskForceCompleted = CadenceMetricsPrefix + "decision-task-force-completed" ActivityPollCounter = CadenceMetricsPrefix + "activity-poll-total" ActivityPollFailedCounter = CadenceMetricsPrefix + "activity-poll-failed" ActivityPollTransientFailedCounter = CadenceMetricsPrefix + "activity-poll-transient-failed" ActivityPollNoTaskCounter = CadenceMetricsPrefix + "activity-poll-no-task" ActivityPollSucceedCounter = CadenceMetricsPrefix + "activity-poll-succeed" ActivityPollLatency = CadenceMetricsPrefix + "activity-poll-latency" ActivityExecutionFailedCounter = CadenceMetricsPrefix + "activity-execution-failed" ActivityExecutionLatency = CadenceMetricsPrefix + "activity-execution-latency" ActivityResponseLatency = CadenceMetricsPrefix + "activity-response-latency" ActivityResponseFailedCounter = CadenceMetricsPrefix + "activity-response-failed" ActivityEndToEndLatency = CadenceMetricsPrefix + "activity-endtoend-latency" ActivityTaskPanicCounter = CadenceMetricsPrefix + "activity-task-panic" ActivityTaskCompletedCounter = CadenceMetricsPrefix + "activity-task-completed" ActivityTaskFailedCounter = CadenceMetricsPrefix + "activity-task-failed" ActivityTaskCanceledCounter = CadenceMetricsPrefix + "activity-task-canceled" ActivityTaskCompletedByIDCounter = CadenceMetricsPrefix + "activity-task-completed-by-id" ActivityTaskFailedByIDCounter = CadenceMetricsPrefix + "activity-task-failed-by-id" ActivityTaskCanceledByIDCounter = CadenceMetricsPrefix + "activity-task-canceled-by-id" LocalActivityTotalCounter = CadenceMetricsPrefix + "local-activity-total" LocalActivityTimeoutCounter = CadenceMetricsPrefix + "local-activity-timeout" LocalActivityCanceledCounter = CadenceMetricsPrefix + "local-activity-canceled" LocalActivityFailedCounter = CadenceMetricsPrefix + "local-activity-failed" LocalActivityPanicCounter = CadenceMetricsPrefix + "local-activity-panic" LocalActivityExecutionLatency = CadenceMetricsPrefix + "local-activity-execution-latency" WorkerPanicCounter = CadenceMetricsPrefix + "worker-panic" TaskListQueueLatency = CadenceMetricsPrefix + "tasklist-queue-latency" UnhandledSignalsCounter = CadenceMetricsPrefix + "unhandled-signals" CorruptedSignalsCounter = CadenceMetricsPrefix + "corrupted-signals" WorkerStartCounter = CadenceMetricsPrefix + "worker-start" PollerStartCounter = CadenceMetricsPrefix + "poller-start" CadenceRequest = CadenceMetricsPrefix + "request" CadenceError = CadenceMetricsPrefix + "error" CadenceLatency = CadenceMetricsPrefix + "latency" CadenceInvalidRequest = CadenceMetricsPrefix + "invalid-request" StickyCacheHit = CadenceMetricsPrefix + "sticky-cache-hit" StickyCacheMiss = CadenceMetricsPrefix + "sticky-cache-miss" StickyCacheStall = CadenceMetricsPrefix + "sticky-cache-stall" StickyCacheSize = CadenceMetricsPrefix + "sticky-cache-size" )
Workflow Creation metrics
Variables ¶
This section is empty.
Functions ¶
func NewTaggedMetricsScope ¶ added in v0.7.1
func NewTaggedMetricsScope() (*TaggedScope, io.Closer, *CapturingStatsReporter)
func NewWorkflowServiceWrapper ¶
func NewWorkflowServiceWrapper(service workflowserviceclient.Interface, scope tally.Scope) workflowserviceclient.Interface
NewWorkflowServiceWrapper creates a new wrapper to WorkflowService that will emit metrics for each service call.
func WrapScope ¶
WrapScope wraps a scope and skip recording metrics when isReplay is true. This is designed to be used by only by workflowEnvironmentImpl so we suppress metrics while replaying history events. Parameter isReplay is a pointer to workflowEnvironmentImpl.isReplay which will be updated when replaying history events.
Types ¶
type CapturedCount ¶ added in v0.7.1
type CapturedCount struct {
// contains filtered or unexported fields
}
func (*CapturedCount) Name ¶ added in v0.7.1
func (c *CapturedCount) Name() string
func (*CapturedCount) Tags ¶ added in v0.7.1
func (c *CapturedCount) Tags() map[string]string
func (*CapturedCount) Value ¶ added in v0.7.1
func (c *CapturedCount) Value() int64
type CapturedGauge ¶ added in v0.7.1
type CapturedGauge struct {
// contains filtered or unexported fields
}
func (*CapturedGauge) Name ¶ added in v0.7.1
func (c *CapturedGauge) Name() string
func (*CapturedGauge) Tags ¶ added in v0.7.1
func (c *CapturedGauge) Tags() map[string]string
func (*CapturedGauge) Value ¶ added in v0.7.1
func (c *CapturedGauge) Value() float64
type CapturedHistogramDurationSamples ¶ added in v0.7.1
type CapturedHistogramDurationSamples struct {
// contains filtered or unexported fields
}
type CapturedHistogramValueSamples ¶ added in v0.7.1
type CapturedHistogramValueSamples struct {
// contains filtered or unexported fields
}
type CapturedTimer ¶ added in v0.7.1
type CapturedTimer struct {
// contains filtered or unexported fields
}
func (*CapturedTimer) Name ¶ added in v0.7.1
func (c *CapturedTimer) Name() string
func (*CapturedTimer) Tags ¶ added in v0.7.1
func (c *CapturedTimer) Tags() map[string]string
func (*CapturedTimer) Value ¶ added in v0.7.1
func (c *CapturedTimer) Value() time.Duration
type CapturingStatsReporter ¶ added in v0.7.1
type CapturingStatsReporter struct {
// contains filtered or unexported fields
}
capturingStatsReporter is a reporter used by tests to capture the metric so we can verify our tests.
func NewMetricsScope ¶ added in v0.7.1
func (*CapturingStatsReporter) Capabilities ¶ added in v0.7.1
func (r *CapturingStatsReporter) Capabilities() tally.Capabilities
func (*CapturingStatsReporter) Counts ¶ added in v0.7.1
func (c *CapturingStatsReporter) Counts() []CapturedCount
func (*CapturingStatsReporter) Flush ¶ added in v0.7.1
func (r *CapturingStatsReporter) Flush()
func (*CapturingStatsReporter) Gauges ¶ added in v0.7.1
func (c *CapturingStatsReporter) Gauges() []CapturedGauge
func (*CapturingStatsReporter) HistogramDurationSamples ¶ added in v0.7.1
func (c *CapturingStatsReporter) HistogramDurationSamples() []CapturedHistogramDurationSamples
func (*CapturingStatsReporter) HistogramValueSamples ¶ added in v0.7.1
func (c *CapturingStatsReporter) HistogramValueSamples() []CapturedHistogramValueSamples
func (*CapturingStatsReporter) ReportCounter ¶ added in v0.7.1
func (r *CapturingStatsReporter) ReportCounter( name string, tags map[string]string, value int64, )
func (*CapturingStatsReporter) ReportGauge ¶ added in v0.7.1
func (r *CapturingStatsReporter) ReportGauge( name string, tags map[string]string, value float64, )
func (*CapturingStatsReporter) ReportHistogramDurationSamples ¶ added in v0.7.1
func (*CapturingStatsReporter) ReportHistogramValueSamples ¶ added in v0.7.1
func (*CapturingStatsReporter) ReportTimer ¶ added in v0.7.1
func (*CapturingStatsReporter) Reporting ¶ added in v0.7.1
func (r *CapturingStatsReporter) Reporting() bool
func (*CapturingStatsReporter) Tagging ¶ added in v0.7.1
func (r *CapturingStatsReporter) Tagging() bool
func (*CapturingStatsReporter) Timers ¶ added in v0.7.1
func (c *CapturingStatsReporter) Timers() []CapturedTimer
type TaggedScope ¶ added in v0.6.1
TaggedScope provides metricScope with tags
func NewTaggedScope ¶ added in v0.6.1
func NewTaggedScope(scope tally.Scope) *TaggedScope
NewTaggedScope create a new TaggedScope
func (*TaggedScope) GetTaggedScope ¶ added in v0.6.1
func (ts *TaggedScope) GetTaggedScope(keyValueinPairs ...string) tally.Scope
GetTaggedScope return a scope with one or multiple tags, input should be key value pairs like: GetTaggedScope(scope, tag1, val1, tag2, val2).