Package com.linkedin.venice.stats
Class OpenTelemetryMetricsSetup.Builder
java.lang.Object
com.linkedin.venice.stats.OpenTelemetryMetricsSetup.Builder
- Enclosing class:
- OpenTelemetryMetricsSetup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build: setup base dimensions and attributes, and determine if OTel metrics should be emitted.isTotalStats
(boolean isTotalStats) Set whether this is for total stats (affects whether OTel metrics are emitted).setClusterName
(String clusterName) Set the cluster name dimension.setRequestType
(RequestType requestType) Set the request type dimension.setRouteName
(String routeName) Set the route name dimension.setStoreName
(String storeName) Set the store name dimension.
-
Constructor Details
-
Builder
public Builder(io.tehuti.metrics.MetricsRepository metricsRepository)
-
-
Method Details
-
setStoreName
Set the store name dimension. -
setRequestType
Set the request type dimension. -
isTotalStats
Set whether this is for total stats (affects whether OTel metrics are emitted). -
setClusterName
Set the cluster name dimension. -
setRouteName
Set the route name dimension. -
build
Build: setup base dimensions and attributes, and determine if OTel metrics should be emitted.- Returns:
- OpenTelemetryMetricsSetupInfo containing this information
-