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 TypeMethodDescriptionReturns abuilderfor aInstrumentationScopeInfo.static InstrumentationScopeInfoCreates a new instance ofInstrumentationScopeInfo.static InstrumentationScopeInfoDeprecated.static InstrumentationScopeInfoempty()Returns an "empty"InstrumentationScopeInfo.abstract AttributesReturns the attributes of this instrumentation scope.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
@Deprecated public static InstrumentationScopeInfo create(String name, @Nullable String version, @Nullable String schemaUrl) Deprecated.Usebuilder(String)orcreate(String).Creates a new instance ofInstrumentationScopeInfo. -
builder
Returns abuilderfor aInstrumentationScopeInfo.- Since:
- 1.18.0
-
empty
Returns an "empty"InstrumentationScopeInfo. -
getName
Returns the name of the instrumentation scope. -
getVersion
-
getSchemaUrl
-
getAttributes
Returns the attributes of this instrumentation scope.- Since:
- 1.18.0
-
builder(String)orcreate(String).