Interface TypedAttributes

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
TypedAttributes.BuilderBase.TypedAttributesImpl

public interface TypedAttributes extends Prototype.Api
Abstraction of typed attributes settable on OpenTelemetry elements.
See Also:
  • Method Details

    • builder

      static TypedAttributes.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static TypedAttributes.Builder builder(TypedAttributes instance)
      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static TypedAttributes create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      @Deprecated static TypedAttributes create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static TypedAttributes create()
      Create a new instance with default values.
      Returns:
      a new instance
    • stringAttributes

      Map<String,String> stringAttributes()
      String attributes.
      Returns:
      string attributes
    • booleanAttributes

      Map<String,Boolean> booleanAttributes()
      Boolean attributes.
      Returns:
      boolean attributes
    • longAttributes

      Map<String,Long> longAttributes()
      Long attributes.
      Returns:
      long attributes
    • doubleAttributes

      Map<String,Double> doubleAttributes()
      Double attributes.
      Returns:
      double attributes