427
queryType string,
428
err error,
430
>
commonTags := []metrics.Tag{
431
>
metrics.OperationTag(metrics.HistoryQueryWorkflowScope),
432
>
metrics.NamespaceTag(nsEntry.Name().String()),
433
>
metrics.VersioningBehaviorTag(workflow.GetEffectiveVersioningBehavior(msResp.GetVersioningInfo())),
434
>
metrics.WorkflowStatusTag(msResp.GetWorkflowStatus().String()),
435
>
metrics.QueryTypeTag(queryType),
436
>
}
437
>
438
>
if err == nil {
439
metrics.WorkflowQuerySuccessCount.With(metricsHandler).Record(1, commonTags...)
440
>
} else if common.IsContextDeadlineExceededErr(err) {
api.go
441
metrics.WorkflowQueryTimeoutCount.With(metricsHandler).Record(1, commonTags...)
442
} else {