Class ResourceBuilderFacade
java.lang.Object
io.confluent.telemetry.ResourceBuilderFacade
A wrapper on the protobuf
Resource.Builder that enforces Confluent conventions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.proto.resource.v1.Resourcebuild()final ResourceBuilderFacadeAdd a label to this Resource.final ResourceBuilderFacadewithLabels(Map<String, String> labels) Add labels to this Resource.withNamespacedLabel(String key, String value) Add a label to this Resource, prefixed with this Resource's type.withNamespacedLabel(String key, List<String> values) withNamespacedLabels(Map<String, String> labels) Add labels to this Resource, prefixed with this Resource's type.withVersion(String version)
-
Constructor Details
-
ResourceBuilderFacade
-
-
Method Details
-
withVersion
-
withId
-
withLabel
Add a label to this Resource. If the label key already exists, the new value will be ignored and a warning logged. -
withLabel
-
withLabels
Add labels to this Resource. If any label keys already exist, the new value for those labels will be ignored. -
withNamespacedLabel
Add a label to this Resource, prefixed with this Resource's type. -
withNamespacedLabel
-
withNamespacedLabels
Add labels to this Resource, prefixed with this Resource's type. -
build
public io.opentelemetry.proto.resource.v1.Resource build()
-