metric_client_gen.go ×4

Frontier kind: Code frontier

unlabeled · c_13b217603dc9

2 tests · 26704 LOC · 625 files · introduces 0 tests · 50 LOC · 6 files

Introduces — evidence that enters the hierarchy at this concept

Code
16 ranges50 lines · 6 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
5595 ranges26704 lines · 625 files · Browse complete extent
All tests (intent)
2 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: 50 introduced LOC across 16 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/client/frontend/metric_client_gen.go 14 introduced LOC · 4 ranges

Open complete file

294 request *workflowservice.DescribeNamespaceRequest,
295 opts ...grpc.CallOption,
296 > ) (_ *workflowservice.DescribeNamespaceResponse, retError error) { metric_client_gen.go
297 >
298 > metricsHandler, startTime := c.startMetricsRecording(ctx, "FrontendClientDescribeNamespace")
299 > defer func() {
300 > c.finishMetricsRecording(metricsHandler, startTime, retError)
301 > }()
302
303 > return c.client.DescribeNamespace(ctx, request, opts...) metric_client_gen.go
304 }
305
1568 request *workflowservice.UpdateNamespaceRequest,
1569 opts ...grpc.CallOption,
1570 > ) (_ *workflowservice.UpdateNamespaceResponse, retError error) { metric_client_gen.go
1571 >
1572 > metricsHandler, startTime := c.startMetricsRecording(ctx, "FrontendClientUpdateNamespace")
1573 > defer func() {
1574 > c.finishMetricsRecording(metricsHandler, startTime, retError)
1575 > }()
1576
1577 > return c.client.UpdateNamespace(ctx, request, opts...) metric_client_gen.go
1578 }
1579
go.temporal.io/server/client/frontend/client_gen.go 10 introduced LOC · 2 ranges

Open complete file

214 request *workflowservice.DescribeNamespaceRequest,
215 opts ...grpc.CallOption,
216 > ) (*workflowservice.DescribeNamespaceResponse, error) { client_gen.go
217 > ctx, cancel := c.createContext(ctx)
218 > defer cancel()
219 > return c.client.DescribeNamespace(ctx, request, opts...)
220 > }
221
222 func (c *clientImpl) DescribeNexusOperationExecution(
1124 request *workflowservice.UpdateNamespaceRequest,
1125 opts ...grpc.CallOption,
1126 > ) (*workflowservice.UpdateNamespaceResponse, error) { client_gen.go
1127 > ctx, cancel := c.createContext(ctx)
1128 > defer cancel()
1129 > return c.client.UpdateNamespace(ctx, request, opts...)
1130 > }
1131
1132 func (c *clientImpl) UpdateSchedule(
go.temporal.io/server/client/frontend/metric_client.go 9 introduced LOC · 3 ranges

Open complete file

37 ctx context.Context,
38 operation string,
39 > ) (metrics.Handler, time.Time) { metric_client.go
40 > caller := headers.GetCallerInfo(ctx).CallerName
41 > handler := c.metricsHandler.WithTags(metrics.OperationTag(operation), metrics.NamespaceTag(caller), metrics.ServiceRoleTag(metrics.FrontendRoleTagValue))
42 > metrics.ClientRequests.With(handler).Record(1)
43 > return handler, time.Now().UTC()
44 > }
45
46 func (c *metricClient) finishMetricsRecording(
48 startTime time.Time,
49 err error,
50 > ) { metric_client.go
51 > if err != nil {
52 switch err.(type) {
53 case *serviceerror.Canceled,
65 metrics.ClientFailures.With(handler).Record(1, metrics.ServiceErrorTypeTag(err))
66 }
67 > metrics.ClientLatency.With(handler).Record(time.Since(startTime)) metric_client.go
68 }
go.temporal.io/server/common/persistence/persistence_rate_limited_clients.go 7 introduced LOC · 4 ranges

Open complete file

672 ctx context.Context,
673 request *UpdateNamespaceRequest,
675 > if err := allow(ctx, "UpdateNamespace", CallerSegmentMissing, p.systemRateLimiter, p.namespaceRateLimiter, p.shardRateLimiter); err != nil {
676 return err
677 }
678
679 > return p.persistence.UpdateNamespace(ctx, request) persistence_rate_limited_clients.go
680 }
681
727 func (p *metadataRateLimitedPersistenceClient) GetMetadata(
728 ctx context.Context,
729 > ) (*GetMetadataResponse, error) { persistence_rate_limited_clients.go
730 > if err := allow(ctx, "GetMetadata", CallerSegmentMissing, p.systemRateLimiter, p.namespaceRateLimiter, p.shardRateLimiter); err != nil {
731 return nil, err
732 }
733
734 > response, err := p.persistence.GetMetadata(ctx) persistence_rate_limited_clients.go
735 > return response, err
736 }
737
go.temporal.io/server/service/frontend/namespace_handler.go 7 introduced LOC · 2 ranges

Open complete file

508 }
509 if len(updatedConfig.CustomSearchAttributeAliases) > 0 {
510 > configurationChanged = true namespace_handler.go
511 > csaAliases, err := d.upsertCustomSearchAttributesAliases(
512 > config.CustomSearchAttributeAliases,
513 > updatedConfig.CustomSearchAttributeAliases,
514 > )
515 > if err != nil {
516 return nil, err
517 }
518 > config.CustomSearchAttributeAliases = csaAliases namespace_handler.go
519 }
520 }
go.temporal.io/server/client/frontend/client.go 3 introduced LOC · 1 range

Open complete file

40 }
41
42 > func (c *clientImpl) createContext(parent context.Context) (context.Context, context.CancelFunc) { client.go
43 > return context.WithTimeout(parent, c.timeout)
44 > }
45
46 func (c *clientImpl) createLongPollContext(parent context.Context) (context.Context, context.CancelFunc) {