tags.go ×4

Frontier kind: Code frontier

unlabeled · c_1836f932e490

21 tests · 2897 LOC · 137 files · introduces 0 tests · 33 LOC · 4 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges33 lines · 4 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
511 ranges2897 lines · 137 files · Browse complete extent
All tests (intent)
21 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.

4 files ranked by introduced lines: 33 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/chasm/lib/nexusoperation/invocation.go 14 introduced LOC · 1 range

Open complete file

56
57 // tags returns the structured log tags describing the call.
58 > func (c invocationTraceContext) tags() []tag.Tag { invocation.go
59 > return []tag.Tag{
60 > tag.Operation(c.operationTag),
61 > tag.WorkflowNamespace(c.namespaceName),
62 > tag.NexusEndpointTargetNamespaceID(c.targetNamespaceID),
63 > tag.RequestID(c.requestID),
64 > tag.NexusOperation(c.operation),
65 > tag.Endpoint(c.endpointName),
66 > tag.WorkflowID(c.workflowID),
67 > tag.WorkflowRunID(c.runID),
68 > tag.AttemptStart(c.attemptStart),
69 > tag.Attempt(c.attempt),
70 > }
71 > }
72
73 type invocation interface {
go.temporal.io/server/common/log/tag/tags.go 12 introduced LOC · 4 ranges

Open complete file

693
694 // AttemptStart returns tag for AttemptStart
695 > func AttemptStart(attemptStart time.Time) ZapTag { tags.go
696 > return NewTimeTag("attempt-start", attemptStart)
697 > }
698
699 // AttemptEnd returns tag for AttemptEnd
986 }
987
988 > func Endpoint(endpoint string) ZapTag { tags.go
989 > return NewStringTag("endpoint", endpoint)
990 > }
991
992 func BuildId(buildId string) ZapTag {
1010 }
1011
1012 > func NexusOperation(operation string) ZapTag { tags.go
1013 > return NewStringTag("nexus-operation", operation)
1014 > }
1015
1016 // NexusTaskQueueName returns tag for NexusTaskQueueName
1020
1021 // NexusEndpointTargetNamespaceID returns a tag for the namespace ID targeted by a Nexus endpoint's worker target.
1022 > func NexusEndpointTargetNamespaceID(namespaceID string) ZapTag { tags.go
1023 > return NewStringTag("nexus-endpoint-target-namespace-id", namespaceID)
1024 > }
1025
1026 // WorkflowRuleID returns tag for WorkflowRuleID
go.temporal.io/server/chasm/lib/nexusoperation/task_handler_base.go 5 introduced LOC · 2 ranges

Open complete file

197 return
198 }
199 > tags := append(traceCtx.tags(), tag.Error(callErr)) task_handler_base.go
200 > msg := fmt.Sprintf("Nexus %s request failed", traceCtx.operationTag)
201 > _, isTimeoutBelowMin := errors.AsType[*operationTimeoutBelowMinError](callErr)
202 > if failureSource == commonnexus.FailureSourceWorker || isTimeoutBelowMin {
203 b.logger.Debug(msg, tags...)
204 > } else { task_handler_base.go
205 b.logger.Error(msg, tags...)
206 }
go.temporal.io/server/chasm/lib/nexusoperation/task_handler_helpers.go 2 introduced LOC · 1 range

Open complete file

41 }
42
43 > func isDestinationDown(err error) bool { task_handler_helpers.go
44 > if _, ok := errors.AsType[serviceerror.ServiceError](err); ok {
45 return false
46 }