// In the future, active will mean that the physical queue for that version has had a task added recently or a recent poller.
if includeAllActive {
versions[k] = true
}
Frontier kind: Code frontier
unlabeled · c_76a983096269
15 tests · 5262 LOC · 190 files · introduces 0 tests · 37 LOC · 2 files
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
Every exact file and test below is linked only from the concept that introduces it.
go.temporal.io/server/common/persistence/client/TestQuotasSuite/TestAPITypeCallOriginPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestBackgroundTypeAPIPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestCallerTypeDefaultPriorityMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestRequestPrioritiesOrderedgo.temporal.io/server/common/future/TestFutureSuite/TestGetWhenContextCanceledgo.temporal.io/server/common/future/TestFutureSuite/TestSetGetReady_Sequentialgo.temporal.io/server/common/future/TestFutureSuite/TestSetReadyGet_Parallelgo.temporal.io/server/common/future/TestFutureSuite/TestSetReadyGet_SequentialEvery collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
2 files ranked by introduced lines: 37 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
// In the future, active will mean that the physical queue for that version has had a task added recently or a recent poller.
if includeAllActive {
versions[k] = true
}
// unversioned queue's backlog is added to their count, and the unversioned queue's count is
// reduced accordingly. This ensures metrics match what DescribeTaskQueue returns.
func (pm *taskQueuePartitionManagerImpl) fetchAndEmitLogicalBacklogMetrics(ctx context.Context) {
task_queue_partition_manager.go
if !pm.config.BreakdownMetricsByTaskQueue() || !pm.config.BreakdownMetricsByPartition() {
return
}
resp, err := pm.describe(ctx, buildIds, true, true, false, false, true)
if err != nil {
return
}
for versionKey, vInfo := range resp.GetVersionsInfoInternal() {
task_queue_partition_manager.go
// When BreakdownMetricsByBuildID is disabled, all versioned queues share the same
// "__versioned__" tag value. Since gauges overwrite on each Record() call, emitting
// multiple versions under the same tag would produce non-deterministic results.
// Skip versioned entries in this case; unversioned attributed metrics are still emitted.
if versionKey != "" && !pm.config.BreakdownMetricsByBuildID() {
continue
}
deploymentName, buildID := parseDeploymentFromVersionKey(versionKey)
versionHandler := pm.metricsHandler.WithTags(
metrics.WorkerVersionTag(versionKey, pm.config.BreakdownMetricsByBuildID()),
metrics.WorkerDeploymentNameTag(deploymentName, pm.config.BreakdownMetricsByBuildID()),
metrics.WorkerDeploymentBuildIDTag(buildID, pm.config.BreakdownMetricsByBuildID()),
)
// Per-priority backlog count
for pri, stats := range pqInfo.GetTaskQueueStatsByPriorityKey() {
metrics.ApproximateBacklogCount.With(versionHandler).Record(
float64(stats.GetApproximateBacklogCount()),
metrics.MatchingTaskPriorityTag(pri),
)
}
// Backlog age (oldest across all priorities)
if age != nil && age.AsDuration() > 0 {
metrics.ApproximateBacklogAgeSeconds.With(versionHandler).Record(age.AsDuration().Seconds())
metrics.ApproximateBacklogAgeSeconds.With(versionHandler).Record(0)
}
}
}
}
func (x *PhysicalTaskQueueInfo) GetTaskQueueStatsByPriorityKey() map[int32]*v13.TaskQueueStats {
message.pb.go
if x != nil {
return x.TaskQueueStatsByPriorityKey
}
return nil
}