Package com.linkedin.venice.utils
Class OpenTelemetryDataTestUtils.OpenTelemetryAttributesBuilder
java.lang.Object
com.linkedin.venice.utils.OpenTelemetryDataTestUtils.OpenTelemetryAttributesBuilder
- Enclosing class:
- OpenTelemetryDataTestUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.api.common.Attributesbuild()Build: setup base dimensions and attributes, and determine if OTel metrics should be emitted.setClusterName(String clusterName) Set the cluster name dimension.setHttpStatus(HttpResponseStatusEnum httpStatus) Set the http status dimension.setKeyCountBucket(VeniceRequestKeyCountBucket keyCountBucket) Set the request key-count-bucket dimension (OTel-only, used on CallTime metrics).setRequestType(RequestType requestType) Set the request type dimension.setRetryType(RequestRetryType retryType) Set the request retry type dimension.setRouteName(String routeName) Set the route name dimension.setStoreName(String storeName) Set the store name dimension.setVeniceStatusCategory(VeniceResponseStatusCategory veniceStatusCategory) Set the Venice response status category dimension.
-
Constructor Details
-
OpenTelemetryAttributesBuilder
public OpenTelemetryAttributesBuilder()
-
-
Method Details
-
setStoreName
Set the store name dimension. -
setRequestType
public OpenTelemetryDataTestUtils.OpenTelemetryAttributesBuilder setRequestType(RequestType requestType) Set the request type dimension. -
setClusterName
Set the cluster name dimension. -
setRouteName
Set the route name dimension. -
setHttpStatus
public OpenTelemetryDataTestUtils.OpenTelemetryAttributesBuilder setHttpStatus(HttpResponseStatusEnum httpStatus) Set the http status dimension. -
setVeniceStatusCategory
public OpenTelemetryDataTestUtils.OpenTelemetryAttributesBuilder setVeniceStatusCategory(VeniceResponseStatusCategory veniceStatusCategory) Set the Venice response status category dimension. -
setRetryType
public OpenTelemetryDataTestUtils.OpenTelemetryAttributesBuilder setRetryType(RequestRetryType retryType) Set the request retry type dimension. -
setKeyCountBucket
public OpenTelemetryDataTestUtils.OpenTelemetryAttributesBuilder setKeyCountBucket(VeniceRequestKeyCountBucket keyCountBucket) Set the request key-count-bucket dimension (OTel-only, used on CallTime metrics). -
build
public io.opentelemetry.api.common.Attributes build()Build: setup base dimensions and attributes, and determine if OTel metrics should be emitted.- Returns:
- OpenTelemetryMetricsSetupInfo containing this information
-