Package io.opentelemetry.sdk.common
Class InstrumentationLibraryInfo
- java.lang.Object
-
- io.opentelemetry.sdk.common.InstrumentationLibraryInfo
-
- Direct Known Subclasses:
AutoValue_InstrumentationLibraryInfo
@Immutable @Deprecated public abstract class InstrumentationLibraryInfo extends java.lang.Object
Deprecated.Holds information about the instrumentation library specified when creating an instance ofTracer
using the Tracer Provider.
-
-
Field Summary
Fields Modifier and Type Field Description private static InstrumentationLibraryInfo
EMPTY
Deprecated.
-
Constructor Summary
Constructors Constructor Description InstrumentationLibraryInfo()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static InstrumentationLibraryInfo
create(java.lang.String name, java.lang.String version)
Deprecated.Creates a new instance ofInstrumentationLibraryInfo
.static InstrumentationLibraryInfo
create(java.lang.String name, java.lang.String version, java.lang.String schemaUrl)
Deprecated.Creates a new instance ofInstrumentationLibraryInfo
.static InstrumentationLibraryInfo
empty()
Deprecated.Returns an "empty"InstrumentationLibraryInfo
.abstract java.lang.String
getName()
Deprecated.Returns the name of the instrumentation library.abstract java.lang.String
getSchemaUrl()
Deprecated.Returns the URL of the schema used by this instrumentation library, ornull
if not available.abstract java.lang.String
getVersion()
Deprecated.Returns the version of the instrumentation library, ornull
if not available.
-
-
-
Field Detail
-
EMPTY
private static final InstrumentationLibraryInfo EMPTY
Deprecated.
-
-
Method Detail
-
create
public static InstrumentationLibraryInfo create(java.lang.String name, @Nullable java.lang.String version)
Deprecated.Creates a new instance ofInstrumentationLibraryInfo
.- Parameters:
name
- name of the instrumentation library (e.g., "io.opentelemetry.contrib.mongodb"), must not be nullversion
- version of the instrumentation library (e.g., "1.0.0"), might be null- Returns:
- the new instance
-
create
public static InstrumentationLibraryInfo create(java.lang.String name, @Nullable java.lang.String version, @Nullable java.lang.String schemaUrl)
Deprecated.Creates a new instance ofInstrumentationLibraryInfo
.- Parameters:
name
- name of the instrumentation library (e.g., "io.opentelemetry.contrib.mongodb"), must not be nullversion
- version of the instrumentation library (e.g., "1.0.0"), might be nullschemaUrl
- 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 java.lang.String getName()
Deprecated.Returns the name of the instrumentation library.- Returns:
- the name of the instrumentation library.
-
getVersion
@Nullable public abstract java.lang.String getVersion()
Deprecated.Returns the version of the instrumentation library, ornull
if not available.- Returns:
- the version of the instrumentation library, or
null
if not available.
-
getSchemaUrl
@Nullable public abstract java.lang.String getSchemaUrl()
Deprecated.Returns the URL of the schema used by this instrumentation library, ornull
if not available.- Returns:
- the URL of the schema used by this instrumentation library, or
null
if not available.
-
-