matching_engine.go ×2

Frontier kind: Code frontier

unlabeled · c_69475c0adef8

416 tests · 3681 LOC · 170 files · introduces 0 tests · 53 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges53 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
614 ranges3681 lines · 170 files · Browse complete extent
All tests (intent)
416 testsBrowse complete intent

Neighbourhood graph

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.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

2 files ranked by introduced lines: 53 introduced LOC across 3 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/matching/matching_engine.go 50 introduced LOC · 2 ranges

Open complete file

3208 partition tqid.Partition,
3209 delta int,
3210 > ) { matching_engine.go
3211 > // each metric shall be accessed based on the mentioned parameters
3212 > taskQueueFamilyParameters := taskQueueCounterKey{
3213 > namespaceID: partition.NamespaceId(),
3214 > }
3215 >
3216 > taskQueueParameters := taskQueueCounterKey{
3217 > namespaceID: partition.NamespaceId(),
3218 > taskType: partition.TaskType(),
3219 > }
3220 >
3221 > taskQueuePartitionParameters := taskQueueCounterKey{
3222 > namespaceID: partition.NamespaceId(),
3223 > taskType: partition.TaskType(),
3224 > partitionType: partition.Kind(),
3225 > }
3226 >
3227 > rootPartition := partition.IsRoot()
3228 > e.gaugeMetrics.lock.Lock()
3229 >
3230 > loadedTaskQueueFamilyCounter, loadedTaskQueueCounter, loadedTaskQueuePartitionCounter :=
3231 > e.gaugeMetrics.loadedTaskQueueFamilyCount[taskQueueFamilyParameters], e.gaugeMetrics.loadedTaskQueueCount[taskQueueParameters],
3232 > e.gaugeMetrics.loadedTaskQueuePartitionCount[taskQueuePartitionParameters]
3233 >
3234 > loadedTaskQueuePartitionCounter += delta
3235 > e.gaugeMetrics.loadedTaskQueuePartitionCount[taskQueuePartitionParameters] = loadedTaskQueuePartitionCounter
3236 > if rootPartition {
3237 loadedTaskQueueCounter += delta
3238 e.gaugeMetrics.loadedTaskQueueCount[taskQueueParameters] = loadedTaskQueueCounter
3242 }
3243 }
3244 > e.gaugeMetrics.lock.Unlock() matching_engine.go
3245 >
3246 > nsName := ns.Name().String()
3247 >
3248 > e.metricsHandler.Gauge(metrics.LoadedTaskQueueFamilyGauge.Name()).Record(
3249 > float64(loadedTaskQueueFamilyCounter),
3250 > metrics.NamespaceTag(nsName),
3251 > )
3252 >
3253 > metrics.LoadedTaskQueueGauge.With(e.metricsHandler).Record(
3254 > float64(loadedTaskQueueCounter),
3255 > metrics.NamespaceTag(nsName),
3256 > metrics.TaskQueueTypeTag(taskQueueParameters.taskType),
3257 > )
3258 >
3259 > taggedHandler := metrics.GetPerTaskQueuePartitionTypeScope(
3260 > e.metricsHandler,
3261 > nsName,
3262 > partition,
3263 > // TODO: Track counters per TQ name so we can honor pm.config.BreakdownMetricsByTaskQueue(),
3264 > false,
3265 > )
3266 > metrics.LoadedTaskQueuePartitionGauge.With(taggedHandler).Record(float64(loadedTaskQueuePartitionCounter))
3267 }
3268
go.temporal.io/server/service/matching/task_queue_partition_manager.go 3 introduced LOC · 1 range

Open complete file

475 }
476
477 > func (pm *taskQueuePartitionManagerImpl) Namespace() *namespace.Namespace { task_queue_partition_manager.go
478 > return pm.ns
479 > }
480
481 func (pm *taskQueuePartitionManagerImpl) MarkAlive() {