util.go ×3

Frontier kind: Joint frontier

unlabeled · c_4d8ca5dbb7c2

1 test · 3874 LOC · 198 files · introduces 1 test · 22 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges22 lines · 3 files
Tests
1 test

Contains — complete concept membership

All code (extent)
573 ranges3874 lines · 198 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

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

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

go.temporal.io/server/common/util.go 12 introduced LOC · 3 ranges

Open complete file

644 deadline, err := ValidateLongPollContextTimeoutIsSet(ctx, handlerName, logger)
645 if err != nil {
646 > return err util.go
647 > }
648 timeout := time.Until(deadline)
649 if timeout < MinLongPollTimeout {
650 > err := ErrContextTimeoutTooShort util.go
651 > logger.Error("Context timeout is too short for long poll API.",
652 > tag.WorkflowHandlerName(handlerName), tag.Error(err), tag.WorkflowPollContextTimeout(timeout))
653 > return err
654 > }
655 if timeout < CriticalLongPollTimeout {
656 logger.Warn("Context timeout is lower than critical value for long poll API.",
669 deadline, ok := ctx.Deadline()
670 if !ok {
671 > err := ErrContextTimeoutNotSet util.go
672 > logger.Error("Context timeout not set for long poll API.",
673 > tag.WorkflowHandlerName(handlerName), tag.Error(err))
674 > return deadline, err
675 > }
676 return deadline, nil
677 }
go.temporal.io/server/common/log/tag/tags.go 6 introduced LOC · 2 ranges

Open complete file

97
98 // WorkflowPollContextTimeout returns tag for WorkflowPollContextTimeout
99 > func WorkflowPollContextTimeout(pollContextTimeout time.Duration) ZapTag { tags.go
100 > return NewDurationTag("wf-poll-context-timeout", pollContextTimeout)
101 > }
102
103 // WorkflowHandlerName returns tag for WorkflowHandlerName
104 > func WorkflowHandlerName(handlerName string) ZapTag { tags.go
105 > return NewStringTag("wf-handler-name", handlerName)
106 > }
107
108 // WorkflowID returns tag for WorkflowID
go.temporal.io/server/service/frontend/workflow_handler.go 4 introduced LOC · 2 ranges

Open complete file

1066 wh.throttledLogger,
1067 ); err != nil {
1068 > return nil, err workflow_handler.go
1069 > }
1070
1071 if len(request.GetIdentity()) > wh.config.MaxIDLengthLimit() {
1336 wh.throttledLogger,
1337 ); err != nil {
1338 > return nil, err workflow_handler.go
1339 > }
1340
1341 namespaceName := namespace.Name(request.GetNamespace())