@Immutable public abstract class InstrumentationLibraryInfo extends Object
Tracer
using TracerSdkProvider
.Modifier and Type | Method and Description |
---|---|
static InstrumentationLibraryInfo |
create(String name,
String version)
Creates a new instance of
InstrumentationLibraryInfo . |
static InstrumentationLibraryInfo |
getEmpty()
Returns an "empty"
InstrumentationLibraryInfo . |
abstract String |
getName()
Returns the name of the instrumentation library.
|
abstract String |
getVersion()
Returns the version of the instrumentation library, or
null if not available. |
public static InstrumentationLibraryInfo create(String name, @Nullable 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 String getName()