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 InstrumentationLibraryInfoDeprecated.Creates a new instance ofInstrumentationLibraryInfo.static InstrumentationLibraryInfoDeprecated.Creates a new instance ofInstrumentationLibraryInfo.static InstrumentationLibraryInfoempty()Deprecated.Returns an "empty"InstrumentationLibraryInfo.abstract StringgetName()Deprecated.Returns the name of the instrumentation library.abstract StringDeprecated.Returns the URL of the schema used by this instrumentation library, ornullif not available.abstract StringDeprecated.Returns the version of the instrumentation library, ornullif 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, ornullif not available.- Returns:
- the version of the instrumentation library, or
nullif not available.
-
getSchemaUrl
Deprecated.Returns the URL of the schema used by this instrumentation library, ornullif not available.- Returns:
- the URL of the schema used by this instrumentation library, or
nullif not available.
-
InstrumentationScopeInfo.