completion.go ×3

Frontier kind: Code frontier

unlabeled · c_1d5406112772

2 tests · 3123 LOC · 141 files · introduces 0 tests · 17 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges17 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
552 ranges3123 lines · 141 files · Browse complete extent
All tests (intent)
2 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: 17 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/components/nexusoperations/completion.go 14 introduced LOC · 3 ranges

Open complete file

88
89 return FailedEventDefinition{}.Apply(node.Parent, event)
90 > case nexus.OperationStateCanceled: completion.go
91 > if originalCause.GetCanceledFailureInfo() == nil {
92 // Old SDKs may send an ApplicationFailure for canceled operation causes.
93 originalCause = &failurepb.Failure{
100 }
101 }
102 > event := node.AddHistoryEvent(enumspb.EVENT_TYPE_NEXUS_OPERATION_CANCELED, func(e *historypb.HistoryEvent) { completion.go
103 > // We must assign to this property, linter doesn't like this.
104 > // nolint:revive
105 > e.Attributes = &historypb.HistoryEvent_NexusOperationCanceledEventAttributes{
106 > NexusOperationCanceledEventAttributes: &historypb.NexusOperationCanceledEventAttributes{
107 > Failure: createNexusOperationFailure(operation, eventID, originalCause),
108 > ScheduledEventId: eventID,
109 > RequestId: operation.RequestId,
110 > },
111 > }
112 > })
113
114 > return CanceledEventDefinition{}.Apply(node.Parent, event) completion.go
115 default:
116 // Both the Nexus Client and CompletionHandler reject invalid states, but just in case, we return this as a
go.temporal.io/server/components/nexusoperations/metrics.go 3 introduced LOC · 1 range

Open complete file

54 // emitOperationCanceled emits the cancel counter and latency metrics for an operation that
55 // completed as canceled.
56 > func emitOperationCanceled(base metrics.Handler, tagConfig chasmnexus.NexusMetricTagConfig, op Operation, namespaceName, workflowType string, closeTime time.Time) { metrics.go
57 > emitOperationOutcome(base, tagConfig, op, namespaceName, workflowType, nexusoperationpb.OPERATION_STATUS_CANCELED, closeTime, chasmnexus.NexusOperationCancelCount.With)
58 > }
59
60 // emitOperationTimedOut emits the timeout counter (tagged with the timeout type) and latency