Class AttributesExtractorUtil

java.lang.Object
io.opentelemetry.instrumentation.api.internal.AttributesExtractorUtil

public final class AttributesExtractorUtil extends Object
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> void
    internalSet(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.api.common.AttributeKey<T> key, T value)
    Sets the value with the given key to the AttributesBuilder if value is not null.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • internalSet

      public static <T> void internalSet(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.api.common.AttributeKey<T> key, @Nullable T value)
      Sets the value with the given key to the AttributesBuilder if value is not null.