Package io.opentelemetry.sdk.common
Class InstrumentationLibraryInfo
java.lang.Object
io.opentelemetry.sdk.common.InstrumentationLibraryInfo
Deprecated.
Holds information about the instrumentation library specified when creating an instance of
Tracer
using the Tracer Provider.-
Method Summary
Modifier and TypeMethodDescriptionstatic InstrumentationLibraryInfo
Deprecated.Creates a new instance ofInstrumentationLibraryInfo
.static InstrumentationLibraryInfo
Deprecated.Creates a new instance ofInstrumentationLibraryInfo
.static InstrumentationLibraryInfo
empty()
Deprecated.Returns an "empty"InstrumentationLibraryInfo
.abstract String
getName()
Deprecated.Returns the name of the instrumentation library.abstract String
Deprecated.Returns the URL of the schema used by this instrumentation library, ornull
if not available.abstract String
Deprecated.Returns the version of the instrumentation library, ornull
if not available.
-
Method Details
-
create
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(String name, @Nullable String version, @Nullable 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
Deprecated.Returns an "empty"InstrumentationLibraryInfo
.- Returns:
- an "empty"
InstrumentationLibraryInfo
.
-
getName
Deprecated.Returns the name of the instrumentation library.- Returns:
- the name of the instrumentation library.
-
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
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.
-
InstrumentationScopeInfo
.