Package io.opentelemetry.sdk.common
Class InstrumentationScopeInfo
java.lang.Object
io.opentelemetry.sdk.common.InstrumentationScopeInfo
Holds information about instrumentation scope.
Instrumentation scope is a logical unit of the application code with which emitted telemetry is associated. The most common approach is to use the instrumentation library as the scope, however other scopes are also common, e.g. a module, a package, or a class may be chosen as the instrumentation scope.
-
Method Summary
Modifier and TypeMethodDescriptionstatic InstrumentationScopeInfoCreates a new instance ofInstrumentationScopeInfo.static InstrumentationScopeInfoCreates a new instance ofInstrumentationScopeInfo.static InstrumentationScopeInfoempty()Returns an "empty"InstrumentationScopeInfo.abstract StringgetName()Returns the name of the instrumentation scope.abstract StringReturns the URL of the schema used by this instrumentation scope, ornullif not available.abstract StringReturns the version of the instrumentation scope, ornullif not available.
-
Method Details
-
create
Creates a new instance ofInstrumentationScopeInfo. -
create
public static InstrumentationScopeInfo create(String name, @Nullable String version, @Nullable String schemaUrl) Creates a new instance ofInstrumentationScopeInfo. -
empty
Returns an "empty"InstrumentationScopeInfo. -
getName
Returns the name of the instrumentation scope. -
getVersion
Returns the version of the instrumentation scope, ornullif not available. -
getSchemaUrl
Returns the URL of the schema used by this instrumentation scope, ornullif not available.
-