Package io.opentelemetry.sdk.common
Class InstrumentationScopeInfoBuilder
- java.lang.Object
-
- io.opentelemetry.sdk.common.InstrumentationScopeInfoBuilder
-
public final class InstrumentationScopeInfoBuilder extends java.lang.Object
A builder forInstrumentationScopeInfo
.- Since:
- 1.18.0
-
-
Field Summary
Fields Modifier and Type Field Description private Attributes
attributes
private java.lang.String
name
private java.lang.String
schemaUrl
private java.lang.String
version
-
Constructor Summary
Constructors Constructor Description InstrumentationScopeInfoBuilder(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstrumentationScopeInfo
build()
Return aInstrumentationScopeInfo
with the configuration of this builder.InstrumentationScopeInfoBuilder
setAttributes(Attributes attributes)
Set the attributes.InstrumentationScopeInfoBuilder
setSchemaUrl(java.lang.String schemaUrl)
Set the schema URL.InstrumentationScopeInfoBuilder
setVersion(java.lang.String version)
Set the version.
-
-
-
Field Detail
-
name
private final java.lang.String name
-
version
@Nullable private java.lang.String version
-
schemaUrl
@Nullable private java.lang.String schemaUrl
-
attributes
@Nullable private Attributes attributes
-
-
Method Detail
-
setVersion
public InstrumentationScopeInfoBuilder setVersion(java.lang.String version)
Set the version.
-
setSchemaUrl
public InstrumentationScopeInfoBuilder setSchemaUrl(java.lang.String schemaUrl)
Set the schema URL.
-
setAttributes
public InstrumentationScopeInfoBuilder setAttributes(Attributes attributes)
Set the attributes.
-
build
public InstrumentationScopeInfo build()
Return aInstrumentationScopeInfo
with the configuration of this builder.
-
-