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 ResourceBuilderResource.builder()Returns a newResourceBuilderinstance for creating arbitraryResource.ResourceBuilder.put(AttributeKey<Long> key, int value) Puts aAttributeKeywith associated value into this.<T> ResourceBuilderResourceBuilder.put(AttributeKey<T> key, T value) Puts aAttributeKeywith 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 allAttributesinto this.Puts all attributes fromResourceinto 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 newResourceBuilderinstance populated with the data of thisResource.