tags.go ×4

Frontier kind: Code frontier

unlabeled · c_be23ec3e89b3

86 tests · 2261 LOC · 113 files · introduces 0 tests · 80 LOC · 6 files

Introduces — evidence that enters the hierarchy at this concept

Code
13 ranges80 lines · 6 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
344 ranges2261 lines · 113 files · Browse complete extent
All tests (intent)
86 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.

6 files ranked by introduced lines: 80 introduced LOC across 13 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/visibility/factory.go 31 introduced LOC · 2 ranges

Open complete file

139 searchAttributesMapperProvider searchattribute.MapperProvider,
140 chasmRegistry *chasm.Registry,
141 > ) manager.VisibilityManager { factory.go
142 > if visStore == nil {
143 return nil
144 }
145 > logger.Info( factory.go
146 > "creating new visibility manager",
147 > tag.String(visibilityPluginNameTag.Key, visibilityPluginNameTag.Value),
148 > tag.String(visibilityIndexNameTag.Key, visibilityIndexNameTag.Value),
149 > )
150 > var visManager manager.VisibilityManager = newVisibilityManagerImpl(
151 > visStore,
152 > logger,
153 > searchAttributesMapperProvider,
154 > chasmRegistry,
155 > )
156 >
157 > // wrap with rate limiter
158 > visManager = NewVisibilityManagerRateLimited(
159 > visManager,
160 > maxReadQPS,
161 > maxWriteQPS,
162 > operatorRPSRatio,
163 > )
164 > // wrap with metrics client
165 > visManager = NewVisibilityManagerMetrics(
166 > visManager,
167 > metricsHandler,
168 > logger,
169 > slowQueryThreshold,
170 > visibilityPluginNameTag,
171 > visibilityIndexNameTag,
172 > )
173 > return visManager
174 }
175
go.temporal.io/server/common/persistence/visibility/quotas.go 17 introduced LOC · 4 ranges

Open complete file

19 maxQPS dynamicconfig.IntPropertyFn,
20 operatorRPSRatio dynamicconfig.FloatPropertyFn,
21 > ) quotas.RequestRateLimiter { quotas.go
22 > rateLimiters := make(map[int]quotas.RequestRateLimiter)
23 > for priority := range PrioritiesOrdered {
24 > if priority == OperatorPriority {
25 > rateLimiters[priority] = quotas.NewRequestRateLimiterAdapter(quotas.NewDefaultOutgoingRateLimiter(operatorRateFn(maxQPS, operatorRPSRatio)))
26 > } else {
27 > rateLimiters[priority] = quotas.NewRequestRateLimiterAdapter(quotas.NewDefaultOutgoingRateLimiter(rateFn(maxQPS)))
28 > }
29 }
30 > return quotas.NewPriorityRateLimiter(func(req quotas.Request) int { quotas.go
31 if req.CallerType == headers.CallerTypeOperator {
32 return OperatorPriority
37 }
38
39 > func rateFn(maxQPS dynamicconfig.IntPropertyFn) quotas.RateFn { quotas.go
40 > return func() float64 {
41 > return float64(maxQPS())
42 > }
43 }
44
45 > func operatorRateFn(maxQPS dynamicconfig.IntPropertyFn, operatorRPSRatio dynamicconfig.FloatPropertyFn) quotas.RateFn { quotas.go
46 > return func() float64 {
47 > return float64(maxQPS()) * operatorRPSRatio()
48 > }
49 }
go.temporal.io/server/common/persistence/visibility/visiblity_manager_metrics.go 11 introduced LOC · 1 range

Open complete file

35 visibilityPluginNameMetricsTag metrics.Tag,
36 visibilityIndexNameMetricsTag metrics.Tag,
37 > ) *visibilityManagerMetrics { visiblity_manager_metrics.go
38 > return &visibilityManagerMetrics{
39 > metricHandler: metricHandler,
40 > logger: logger,
41 > delegate: delegate,
42 >
43 > slowQueryThreshold: slowQueryThreshold,
44 > visibilityPluginNameMetricsTag: visibilityPluginNameMetricsTag,
45 > visibilityIndexNameMetricsTag: visibilityIndexNameMetricsTag,
46 > }
47 > }
48
49 func (m *visibilityManagerMetrics) Close() {
go.temporal.io/server/common/persistence/visibility/visibility_manager_impl.go 8 introduced LOC · 1 range

Open complete file

54 searchAttributesMapperProvider searchattribute.MapperProvider,
55 chasmRegistry *chasm.Registry,
56 > ) *visibilityManagerImpl { visibility_manager_impl.go
57 > return &visibilityManagerImpl{
58 > store: store,
59 > logger: logger,
60 > searchAttributesMapperProvider: searchAttributesMapperProvider,
61 > chasmRegistry: chasmRegistry,
62 > }
63 > }
64
65 func (p *visibilityManagerImpl) Close() {
go.temporal.io/server/common/persistence/visibility/visibility_manager_rate_limited.go 7 introduced LOC · 1 range

Open complete file

31 writeMaxQPS dynamicconfig.IntPropertyFn,
32 operatorRPSRatio dynamicconfig.FloatPropertyFn,
33 > ) *visibilityManagerRateLimited { visibility_manager_rate_limited.go
34 > return &visibilityManagerRateLimited{
35 > delegate: delegate,
36 > readRateLimiter: newPriorityRateLimiter(readMaxQPS, operatorRPSRatio),
37 > writeRateLimiter: newPriorityRateLimiter(writeMaxQPS, operatorRPSRatio),
38 > }
39 > }
40
41 func (m *visibilityManagerRateLimited) Close() {
go.temporal.io/server/common/metrics/tags.go 6 introduced LOC · 4 ranges

Open complete file

380 }
381
382 > func VisibilityPluginNameTag(value string) Tag { tags.go
383 > if value == "" {
384 value = unknownValue
385 }
386 > return Tag{Key: visibilityPluginNameTagName, Value: value} tags.go
387 }
388
389 > func VisibilityIndexNameTag(value string) Tag { tags.go
390 > if value == "" {
391 value = unknownValue
392 }
393 > return Tag{Key: visibilityIndexNameTagName, Value: value} tags.go
394 }
395