Class InstrumentationLibraryInfo

java.lang.Object
io.opentelemetry.sdk.common.InstrumentationLibraryInfo

@Immutable @Deprecated public abstract class InstrumentationLibraryInfo extends Object
Deprecated.
Holds information about the instrumentation library specified when creating an instance of Tracer using the Tracer Provider.
  • Method Details

    • create

      public static InstrumentationLibraryInfo create(String name, @Nullable String version)
      Deprecated.
      Creates a new instance of InstrumentationLibraryInfo.
      Parameters:
      name - name of the instrumentation library (e.g., "io.opentelemetry.contrib.mongodb"), must not be null
      version - version of the instrumentation library (e.g., "1.0.0"), might be null
      Returns:
      the new instance
    • create

      public static InstrumentationLibraryInfo create(String name, @Nullable String version, @Nullable String schemaUrl)
      Deprecated.
      Creates a new instance of InstrumentationLibraryInfo.
      Parameters:
      name - name of the instrumentation library (e.g., "io.opentelemetry.contrib.mongodb"), must not be null
      version - version of the instrumentation library (e.g., "1.0.0"), might be null
      schemaUrl - the URL of the OpenTelemetry schema being used by this instrumentation library.
      Returns:
      the new instance
      Since:
      1.4.0
    • empty

      public static InstrumentationLibraryInfo empty()
      Deprecated.
      Returns an "empty" InstrumentationLibraryInfo.
      Returns:
      an "empty" InstrumentationLibraryInfo.
    • getName

      public abstract String getName()
      Deprecated.
      Returns the name of the instrumentation library.
      Returns:
      the name of the instrumentation library.
    • getVersion

      @Nullable public abstract String getVersion()
      Deprecated.
      Returns the version of the instrumentation library, or null if not available.
      Returns:
      the version of the instrumentation library, or null if not available.
    • getSchemaUrl

      @Nullable public abstract String getSchemaUrl()
      Deprecated.
      Returns the URL of the schema used by this instrumentation library, or null if not available.
      Returns:
      the URL of the schema used by this instrumentation library, or null if not available.