Uses of Class
io.opentelemetry.sdk.resources.ResourceBuilder
Packages that use ResourceBuilder
-
Uses of ResourceBuilder in io.opentelemetry.sdk.resources
Methods in io.opentelemetry.sdk.resources that return ResourceBuilderModifier and TypeMethodDescriptionstatic ResourceBuilder
Resource.builder()
Returns a newResourceBuilder
instance for creating arbitraryResource
.ResourceBuilder.put
(AttributeKey<Long> key, int value) Puts aAttributeKey
with associated value into this.<T> ResourceBuilder
ResourceBuilder.put
(AttributeKey<T> key, T value) Puts aAttributeKey
with associated value into this.Puts a boolean attribute into this.Puts a Boolean array attribute into this.Puts a double attribute into this.Puts a Double array attribute into this.Puts a long attribute into this.Puts a Long array attribute into this.Puts a String attribute into this.Puts a String array attribute into this.ResourceBuilder.putAll
(Attributes attributes) Puts allAttributes
into this.Puts all attributes fromResource
into this.ResourceBuilder.removeIf
(Predicate<AttributeKey<?>> filter) Remove all attributes that satisfy the given predicate fromResource
.ResourceBuilder.setSchemaUrl
(String schemaUrl) Assign an OpenTelemetry schema URL to the resulting Resource.Resource.toBuilder()
Returns a newResourceBuilder
instance populated with the data of thisResource
.