persistence_rate_limited_clients.go ×2

Frontier kind: Joint frontier

unlabeled · c_b8e4b2c60c81

6 tests · 2677 LOC · 111 files · introduces 3 tests · 26 LOC · 5 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges26 lines · 5 files
Tests
3 tests

Contains — complete concept membership

All code (extent)
442 ranges2677 lines · 111 files · Browse complete extent
All tests (intent)
6 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.

3 tests introduced at this concept.

Introduced code

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

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

go.temporal.io/server/common/persistence/persistence_metric_clients.go 9 introduced LOC · 1 range

Open complete file

1406 ctx context.Context,
1407 request *DeleteNexusEndpointRequest,
1408 > ) (retErr error) { persistence_metric_clients.go
1409 > caller := headers.GetCallerInfo(ctx).CallerName
1410 > startTime := time.Now().UTC()
1411 > defer func() {
1412 > p.healthSignals.Record(CallerSegmentMissing, time.Since(startTime), retErr)
1413 > p.recordRequestMetrics(metrics.PersistenceDeleteNexusEndpointScope, caller, time.Since(startTime), retErr)
1414 > p.recordDataLossMetrics(metrics.PersistenceDeleteNexusEndpointScope, caller, retErr, "", "")
1415 > }()
1416 > return p.persistence.DeleteNexusEndpoint(ctx, request)
1417 }
1418
go.temporal.io/server/common/persistence/mock/store_mock.go 6 introduced LOC · 1 range

Open complete file

1542
1543 // DeleteNexusEndpoint mocks base method.
1544 > func (m *MockNexusEndpointStore) DeleteNexusEndpoint(ctx context.Context, request *persistence.DeleteNexusEndpointRequest) error { store_mock.go
1545 > m.ctrl.T.Helper()
1546 > ret := m.ctrl.Call(m, "DeleteNexusEndpoint", ctx, request)
1547 > ret0, _ := ret[0].(error)
1548 > return ret0
1549 > }
1550
1551 // DeleteNexusEndpoint indicates an expected call of DeleteNexusEndpoint.
go.temporal.io/server/common/persistence/persistence_retryable_clients.go 5 introduced LOC · 1 range

Open complete file

1255 ctx context.Context,
1256 request *DeleteNexusEndpointRequest,
1258 > op := func(ctx context.Context) error {
1259 > return p.persistence.DeleteNexusEndpoint(ctx, request)
1260 > }
1261 > return backoff.ThrottleRetryContext(ctx, op, p.policy, p.isRetryable)
1262 }
go.temporal.io/server/common/persistence/nexus_endpoint_manager.go 3 introduced LOC · 1 range

Open complete file

134 ctx context.Context,
135 request *DeleteNexusEndpointRequest,
136 > ) error { nexus_endpoint_manager.go
137 > return m.persistence.DeleteNexusEndpoint(ctx, request)
138 > }
go.temporal.io/server/common/persistence/persistence_rate_limited_clients.go 3 introduced LOC · 2 ranges

Open complete file

1137 ctx context.Context,
1138 request *DeleteNexusEndpointRequest,
1140 > if err := allow(ctx, "DeleteNexusEndpoint", CallerSegmentMissing, p.systemRateLimiter, p.namespaceRateLimiter, p.shardRateLimiter); err != nil {
1141 return err
1142 }
1143 > return p.persistence.DeleteNexusEndpoint(ctx, request) persistence_rate_limited_clients.go
1144 }
1145