matching_engine.go ×4

Frontier kind: Code frontier

unlabeled · c_2b5a0e100483

50 tests · 3148 LOC · 151 files · introduces 0 tests · 31 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges31 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
534 ranges3148 lines · 151 files · Browse complete extent
All tests (intent)
50 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.

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

go.temporal.io/server/service/matching/matching_engine.go 26 introduced LOC · 4 ranges

Open complete file

3090 namespaceName string,
3091 pollMetadata *pollMetadata,
3092 > ) { matching_engine.go
3093 > tqName := partition.TaskQueue().Name()
3094 > taskType := partition.TaskType()
3095 >
3096 > if !e.config.EmitTaskDispatchLatencyAtPoll(namespaceName, tqName, taskType) {
3097 return
3098 }
3099
3100 > taskCreateTime := task.getCreateTime() matching_engine.go
3101 > if taskCreateTime == nil {
3102 return
3103 }
3105 // Determine origin partition: for forwarded tasks use the origin partition from
3106 // forward info; for local tasks use the current partition.
3107 > originPartition := partition matching_engine.go
3108 > if task.isForwarded() && task.forwardInfo.GetOriginPartition() != "" {
3109 o, err := tqid.NormalPartitionFromRpcName(task.forwardInfo.GetOriginPartition(), namespaceID, taskType)
3110 if err == nil {
3113 }
3114
3115 > workerVersion := worker_versioning.WorkerDeploymentVersionToStringV32(worker_versioning.DeploymentVersionFromOptions(pollMetadata.deploymentOptions)) matching_engine.go
3116 >
3117 > handler := metrics.GetPerTaskQueuePartitionIDScope(
3118 > e.metricsHandler,
3119 > namespaceName,
3120 > originPartition,
3121 > e.config.BreakdownMetricsByTaskQueue(namespaceName, tqName, taskType),
3122 > e.config.BreakdownMetricsByPartition(namespaceName, tqName, taskType),
3123 > )
3124 >
3125 > metrics.TaskDispatchLatencyPerTaskQueue.With(handler).Record(
3126 > time.Since(timestamp.TimeValue(taskCreateTime)),
3127 > metrics.TaskSourceTag(task.source),
3128 > metrics.ForwardedTag(task.isForwarded()),
3129 > metrics.MatchingTaskPriorityTag(task.getPriority().GetPriorityKey()),
3130 > metrics.WorkerVersionTag(workerVersion, e.config.BreakdownMetricsByBuildID(namespaceName, tqName, taskType)),
3131 > )
3132 }
3133
go.temporal.io/server/common/metrics/tags.go 3 introduced LOC · 1 range

Open complete file

311 }
312
313 > func TaskSourceTag(source enumsspb.TaskSource) Tag { tags.go
314 > return Tag{Key: taskSourceTag, Value: source.String()}
315 > }
316
317 func ForwardedTag(forwarded bool) Tag {
go.temporal.io/server/api/enums/v1/task.pb.go 2 introduced LOC · 1 range

Open complete file

55 }
56
57 > func (x TaskSource) String() string { task.pb.go
58 > switch x {
59 case TASK_SOURCE_UNSPECIFIED:
60 return "Unspecified"