go.temporal.io/server/common/metrics/option.go

21 LOC · 6 covered · 15 uncovered · 2 ranges · 23629 concepts · 1 introducers · 11564 tests

File neighbourhood

The centred file is linked to every concept that introduces one of its ranges, every test that runs code from the file, and the gray connector concepts standing between those tests and the file's own introducer concepts. Undirected links join concepts to every file where they introduce source and concepts to the tests they introduce; arrows show specialization between the displayed concepts and bridge only concepts omitted from this view. Concept colors match the source ranges below; connector concepts have no source color and are shown in gray.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the file

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 related-file, concept, and source links on this page.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the filego.temporal.io/server/api/metrics/v1/message.pb.go · 128 LOCv1/message.pb.gogo.temporal.io/server/common/build/build.go · 56 LOCbuild/build.gogo.temporal.io/server/common/metrics/defs.go · 76 LOCmetrics/defs.gogo.temporal.io/server/common/metrics/defs_base.go · 30 LOCmetrics/defs_base.gogo.temporal.io/server/common/metrics/noop_impl.go · 58 LOCmetrics/noop_impl.gogo.temporal.io/server/common/metrics/registry.go · 75 LOCmetrics/registry.gorate_burst.go ×1 · 2 introduced LOCrate_burst.go ×1shared_structure.go ×3 · 9 introduced LOCshared_structure.go ×3TestAPIs · 0 introduced LOCTestAPIsdeepcopy.go ×2 · 3 introduced LOCdeepcopy.go ×2deepcopy.go ×2 · 7 introduced LOCdeepcopy.go ×2deepcopy.go ×1 · 6 introduced LOCdeepcopy.go ×1deepcopy.go ×1 · 4 introduced LOCdeepcopy.go ×1deepcopy.go ×1 · 5 introduced LOCdeepcopy.go ×1gradual_change.go ×1 · 5 introduced LOCgradual_change.go ×1setting_gen.go ×51 · 335 introduced LOCsetting_gen.go ×51util.go ×1 · 2 introduced LOCutil.go ×1util.go ×5 · 32 introduced LOCutil.go ×5errors.go ×1 · 4 introduced LOCerrors.go ×1util.go ×2 · 6 introduced LOCutil.go ×2util.go ×1 · 3 introduced LOCutil.go ×1util.go ×1 · 5 introduced LOCutil.go ×1util.go ×1 · 5 introduced LOCutil.go ×1tally_metrics_handler.go ×2 · 18 introduced LOCtally_metrics_handler.go…defs.go ×5 · 91 introduced LOCdefs.go ×5TestCreateHistoryStartWorkflowRequestPayloads · introduced test · go.temporal.io/server/common/TestCreateHistoryStartWorkflowRequestPayloadsTestCreateHistoryStartWo…TestIsContextCanceledErr · introduced test · go.temporal.io/server/common/TestIsContextCanceledErrTestIsContextCanceledErrTestIsContextDeadlineExceededErr · introduced test · go.temporal.io/server/common/TestIsContextDeadlineExceededErrTestIsContextDeadlineExc…TestVerifyShardIDMapping_1VS4 · introduced test · go.temporal.io/server/common/TestVerifyShardIDMapping_1VS4TestVerifyShardIDMapping…TestTSCBWithDynamicSettings · introduced test · go.temporal.io/server/common/circuitbreaker/TestTSCBWithDynamicSettingsTestTSCBWithDynamicSetti…TestDeepCopy_IntSlice · introduced test · go.temporal.io/server/common/dynamicconfig/TestDeepCopy_IntSliceTestDeepCopy_IntSliceTestDeepCopy_Map · introduced test · go.temporal.io/server/common/dynamicconfig/TestDeepCopy_MapTestDeepCopy_MapTestDeepCopy_MapMap · introduced test · go.temporal.io/server/common/dynamicconfig/TestDeepCopy_MapMapTestDeepCopy_MapMapTestDeepCopy_OtherReferenceTypes_Nil · introduced test · go.temporal.io/server/common/dynamicconfig/TestDeepCopy_OtherReferenceTypes_NilTestDeepCopy_OtherRefere…TestDeepCopy_OtherReferenceTypes_NonNil · introduced test · go.temporal.io/server/common/dynamicconfig/TestDeepCopy_OtherReferenceTypes_NonNilTestDeepCopy_OtherRefere…TestDeepCopy_Pointer · introduced test · go.temporal.io/server/common/dynamicconfig/TestDeepCopy_PointerTestDeepCopy_PointerTestDeepCopy_SimpleStruct · introduced test · go.temporal.io/server/common/dynamicconfig/TestDeepCopy_SimpleStructTestDeepCopy_SimpleStruc…TestDeepCopy_StringSlice · introduced test · go.temporal.io/server/common/dynamicconfig/TestDeepCopy_StringSliceTestDeepCopy_StringSliceTestGradualChangeWhen_ConsistentForSameKey · introduced test · go.temporal.io/server/common/dynamicconfig/TestGradualChangeWhen_ConsistentForSameKeyTestGradualChangeWhen_Co…TestGradualChangeWhen_DifferentKeysHaveDifferentTimes · introduced test · go.temporal.io/server/common/dynamicconfig/TestGradualChangeWhen_DifferentKeysHaveDifferentTimesTestGradualChangeWhen_Di…TestHasSharedStructure · introduced test · go.temporal.io/server/common/dynamicconfig/TestHasSharedStructureTestHasSharedStructureTestStaticGradualChange_WhenReturnsZeroOrPast · introduced test · go.temporal.io/server/common/dynamicconfig/TestStaticGradualChange_WhenReturnsZeroOrPastTestStaticGradualChange_…TestMutexMapBaggage · introduced test · go.temporal.io/server/common/metrics/TestBaggageBenchSuite/TestMutexMapBaggageTestMutexMapBaggageTestSyncMapBaggage · introduced test · go.temporal.io/server/common/metrics/TestBaggageBenchSuite/TestSyncMapBaggageTestSyncMapBaggagedifferent_keys · introduced test · go.temporal.io/server/common/metrics/TestTagsCacheKey/different_keysdifferent_keysdifferent_ordering · introduced test · go.temporal.io/server/common/metrics/TestTagsCacheKey/different_orderingdifferent_orderingdifferent_values · introduced test · go.temporal.io/server/common/metrics/TestTagsCacheKey/different_valuesdifferent_valuesidentical_multi_tags · introduced test · go.temporal.io/server/common/metrics/TestTagsCacheKey/identical_multi_tagsidentical_multi_tagsidentical_single_tags · introduced test · go.temporal.io/server/common/metrics/TestTagsCacheKey/identical_single_tagsidentical_single_tagskey_boundary_ambiguity · introduced test · go.temporal.io/server/common/metrics/TestTagsCacheKey/key_boundary_ambiguitykey_boundary_ambiguitysingle_vs_multi · introduced test · go.temporal.io/server/common/metrics/TestTagsCacheKey/single_vs_multisingle_vs_multiTestTagsCacheKey_NoCollisionsForEmbeddedNulls · introduced test · go.temporal.io/server/common/metrics/TestTagsCacheKey_NoCollisionsForEmbeddedNullsTestTagsCacheKey_NoColli…TestExecutionAPIPrioritiesOrdered · introduced test · go.temporal.io/server/service/frontend/configs/TestQuotasSuite/TestExecutionAPIPrioritiesOrderedTestExecutionAPIPrioriti…TestExecutionAPIToPriorityMapping · introduced test · go.temporal.io/server/service/frontend/configs/TestQuotasSuite/TestExecutionAPIToPriorityMappingTestExecutionAPIToPriori…TestNamespaceReplicationInducingAPIPrioritiesOrdered · introduced test · go.temporal.io/server/service/frontend/configs/TestQuotasSuite/TestNamespaceReplicationInducingAPIPrioritiesOrderedTestNamespaceReplication…TestNamespaceReplicationInducingAPIToPriorityMapping · introduced test · go.temporal.io/server/service/frontend/configs/TestQuotasSuite/TestNamespaceReplicationInducingAPIToPriorityMappingTestNamespaceReplication…TestNamespaceReplicationInducingAPIs · introduced test · go.temporal.io/server/service/frontend/configs/TestQuotasSuite/TestNamespaceReplicationInducingAPIsTestNamespaceReplication…TestVisibilityAPIPrioritiesOrdered · introduced test · go.temporal.io/server/service/frontend/configs/TestQuotasSuite/TestVisibilityAPIPrioritiesOrderedTestVisibilityAPIPriorit…TestVisibilityAPIToPriorityMapping · introduced test · go.temporal.io/server/service/frontend/configs/TestQuotasSuite/TestVisibilityAPIToPriorityMappingTestVisibilityAPIToPrior…TestVisibilityAPIs · introduced test · go.temporal.io/server/service/frontend/configs/TestQuotasSuite/TestVisibilityAPIsTestVisibilityAPIsformatted_message · introduced test · go.temporal.io/server/service/history/workflow/matcher/TestNewMatcherError/formatted_messageformatted_messagemultiple_format_specifiers · introduced test · go.temporal.io/server/service/history/workflow/matcher/TestNewMatcherError/multiple_format_specifiersmultiple_format_specifie…no_format_specifiers · introduced test · go.temporal.io/server/service/history/workflow/matcher/TestNewMatcherError/no_format_specifiersno_format_specifierssimple_message · introduced test · go.temporal.io/server/service/history/workflow/matcher/TestNewMatcherError/simple_messagesimple_messageTestAPIPrioritiesOrdered · introduced test · go.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIPrioritiesOrderedTestAPIPrioritiesOrderedTestAPIToPriorityMapping · introduced test · go.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIToPriorityMappingTestAPIToPriorityMappingTestAPIs · introduced test · go.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIsTestAPIsFocused file · go.temporal.io/server/common/metrics/option.go · 21 LOCmetrics/option.go

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the related-file, concept, and source links on this page while the interactive map is unavailable.

1 package metrics
2
3 // Option is used to configure a metric definition. Note that options are currently only supported when using the
4 // Prometheus reporter with the OpenTelemetry framework.
5 type Option interface {
6 apply(m *metricDefinition)
7 }
8
9 // WithDescription sets the description, or "help text", of a metric. See [ServiceRequests] for an example.
10 type WithDescription string
11
12 > func (h WithDescription) apply(m *metricDefinition) { defs.go ×5
13 > m.description = string(h)
14 > }
15
16 // WithUnit sets the unit of a metric. See NewBytesHistogramDef for an example.
17 type WithUnit MetricUnit
18
19 > func (h WithUnit) apply(m *metricDefinition) { defs.go ×5
20 > m.unit = MetricUnit(h)
21 > }