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 ranges 50 lines · 6 files
Tests
0 tests
Contains — complete concept membership
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.
Focus concept
Ancestors (broader)
Descendants (narrower)
Introduced files
Introduced tests
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.
JavaScript is disabled; use the native relationship evidence on this page to explore the same evidence.
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 ,
297
>
298
>
metricsHandler , startTime := c . startMetricsRecording ( ctx , "FrontendClientDescribeNamespace" )
299
>
defer func () {
300
>
c . finishMetricsRecording ( metricsHandler , startTime , retError )
301
>
}()
302
304
}
305
1568
request * workflowservice . UpdateNamespaceRequest ,
1569
opts ... grpc . CallOption ,
1571
>
1572
>
metricsHandler , startTime := c . startMetricsRecording ( ctx , "FrontendClientUpdateNamespace" )
1573
>
defer func () {
1574
>
c . finishMetricsRecording ( metricsHandler , startTime , retError )
1575
>
}()
1576
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 ,
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 ,
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
680
}
681
727
func ( p * metadataRateLimitedPersistenceClient ) GetMetadata (
728
ctx context . Context ,
730
>
if err := allow ( ctx , "GetMetadata" , CallerSegmentMissing , p . systemRateLimiter , p . namespaceRateLimiter , p . shardRateLimiter ); err != nil {
731
return nil , err
732
}
733
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 {
511
>
csaAliases , err := d . upsertCustomSearchAttributesAliases (
512
>
config . CustomSearchAttributeAliases ,
513
>
updatedConfig . CustomSearchAttributeAliases ,
514
>
)
515
>
if err != nil {
516
return nil , err
517
}
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 ) {