@Immutable
public abstract class InstrumentationLibraryInfo
extends java.lang.Object
Tracer
using the Tracer Provider.Modifier and Type | Method and Description |
---|---|
static InstrumentationLibraryInfo |
create(java.lang.String name,
java.lang.String version)
Creates a new instance of
InstrumentationLibraryInfo . |
static InstrumentationLibraryInfo |
getEmpty()
Returns an "empty"
InstrumentationLibraryInfo . |
abstract java.lang.String |
getName()
Returns the name of the instrumentation library.
|
abstract java.lang.String |
getVersion()
Returns the version of the instrumentation library, or
null if not available. |
public static InstrumentationLibraryInfo create(java.lang.String name, @Nullable java.lang.String version)
InstrumentationLibraryInfo
.name
- name of the instrumentation library (e.g., "io.opentelemetry.contrib.mongodb"),
must not be nullversion
- version of the instrumentation library (e.g., "semver:1.0.0"), might be nullpublic static InstrumentationLibraryInfo getEmpty()
InstrumentationLibraryInfo
.InstrumentationLibraryInfo
.public abstract java.lang.String getName()
@Nullable public abstract java.lang.String getVersion()
null
if not available.null
if not available.