tree.go ×3

Frontier kind: Code frontier

unlabeled · c_3f14d76e003f

149 tests · 2522 LOC · 92 files · introduces 0 tests · 35 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges35 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
469 ranges2522 lines · 92 files · Browse complete extent
All tests (intent)
149 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: 35 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/chasm/tree.go 24 introduced LOC · 3 ranges

Open complete file

3524 }
3525
3526 > executionContext := NewMutableContext(progressIntentCtx, n) tree.go
3527 > component, err := n.Component(executionContext, ComponentRef{})
3528 > if err != nil {
3529 return false, err
3530 }
3531
3532 > defer log.CapturePanic(n.logger, &retErr) tree.go
3533 >
3534 > archetypeTag := metrics.ArchetypeTag("")
3535 > if name, ok := n.registry.ArchetypeDisplayName(n.ArchetypeID()); ok {
3536 > archetypeTag = metrics.ArchetypeTag(name)
3537 > }
3538 > chasmTaskTypeTag := metrics.ChasmTaskTypeTag(registrableTask.fqType())
3539 > metricsHandler := n.metricsHandler.WithTags(archetypeTag)
3540 >
3541 > execErr := registrableTask.pureTaskExecuteFn(
3542 > executionContext,
3543 > component,
3544 > taskAttributes,
3545 > taskInstance,
3546 > n.registry,
3547 > )
3548 >
3549 > metrics.ChasmPureTaskRequests.With(metricsHandler).Record(1, chasmTaskTypeTag)
3550 >
3551 > if execErr != nil {
3552 metrics.ChasmPureTaskErrors.With(metricsHandler).Record(1, chasmTaskTypeTag)
3553 return true, execErr
3561 // See: https://github.com/temporalio/temporal/pull/7701#discussion_r2072026993
3562
3563 > return true, nil tree.go
3564 }
3565
go.temporal.io/server/chasm/registrable_task.go 8 introduced LOC · 1 range

Open complete file

115 taskData any,
116 registry *Registry,
117 > ) error { registrable_task.go
118 > return handler.Execute(
119 > ctx,
120 > component.(C),
121 > taskAttrs,
122 > taskData.(T),
123 > )
124 > },
125 nil, // sideEffectTaskExecuteFn is not used for pure tasks
126 true,
go.temporal.io/server/common/metrics/tags.go 3 introduced LOC · 2 ranges

Open complete file

293 }
294
295 > func ChasmTaskTypeTag(value string) Tag { tags.go
296 > if len(value) == 0 {
297 value = unknownValue
298 }
299 > return Tag{Key: ChasmTaskTypeTagName, Value: value} tags.go
300 }
301