Package io.opentelemetry.sdk.common
Class InstrumentationScopeInfo
java.lang.Object
io.opentelemetry.sdk.common.InstrumentationScopeInfo
- Direct Known Subclasses:
AutoValue_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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns abuilderfor aInstrumentationScopeInfo.static InstrumentationScopeInfoCreates a new instance ofInstrumentationScopeInfo.static InstrumentationScopeInfoDeprecated.(package private) static InstrumentationScopeInfocreate(String name, String version, String schemaUrl, Attributes attributes) 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.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
InstrumentationScopeInfo
InstrumentationScopeInfo()
-
-
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. -
create
static InstrumentationScopeInfo create(String name, @Nullable String version, @Nullable String schemaUrl, Attributes attributes) -
builder
Returns abuilderfor aInstrumentationScopeInfo.- Since:
- 1.18.0
-
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. -
getAttributes
Returns the attributes of this instrumentation scope.- Since:
- 1.18.0
-
builder(String)orcreate(String).