reader.go ×2

Frontier kind: Code frontier

unlabeled · c_ac31935371c2

34 tests · 2695 LOC · 137 files · introduces 0 tests · 38 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges38 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
397 ranges2695 lines · 137 files · Browse complete extent
All tests (intent)
34 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: 38 introduced LOC across 3 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/queues/reader.go 35 introduced LOC · 2 ranges

Open complete file

103 logger log.Logger,
104 metricsHandler metrics.Handler,
105 > ) *ReaderImpl { reader.go
106 >
107 > sliceList := list.New()
108 > for _, slice := range slices {
109 sliceList.PushBack(slice)
110 }
111 > monitor.SetSliceCount(readerID, len(slices)) reader.go
112 >
113 > rateLimitContext, rateLimitContextCancel := context.WithCancel(context.Background())
114 > return &ReaderImpl{
115 > readerID: readerID,
116 > options: options,
117 > scheduler: scheduler,
118 > rescheduler: rescheduler,
119 > timeSource: timeSource,
120 > ratelimiter: ratelimiter,
121 > monitor: monitor,
122 > completionFn: completionFn,
123 > logger: log.With(logger, tag.QueueReaderID(readerID)),
124 > metricsHandler: metricsHandler,
125 >
126 > status: common.DaemonStatusInitialized,
127 > shutdownCh: make(chan struct{}),
128 >
129 > slices: sliceList,
130 > nextReadSlice: sliceList.Front(),
131 > notifyCh: make(chan struct{}, 1),
132 >
133 > retrier: backoff.NewRetrier(
134 > common.CreateReadTaskRetryPolicy(),
135 > clock.NewRealTimeSource(),
136 > ),
137 >
138 > rateLimitContext: rateLimitContext,
139 > rateLimitContextCancel: rateLimitContextCancel,
140 > rateLimiterRequest: newReaderRequest(readerID),
141 > }
142 }
143
go.temporal.io/server/common/log/tag/tags.go 3 introduced LOC · 1 range

Open complete file

605
606 // QueueReaderID returns tag for queue readerID
607 > func QueueReaderID(readerID int64) ZapTag { tags.go
608 > return NewInt64("queue-reader-id", readerID)
609 > }
610
611 // QueueAlert returns tag for queue alert