Package io.opentelemetry.sdk.common
Class InstrumentationScopeInfoBuilder
- java.lang.Object
-
- io.opentelemetry.sdk.common.InstrumentationScopeInfoBuilder
-
public final class InstrumentationScopeInfoBuilder extends java.lang.ObjectA builder forInstrumentationScopeInfo.- Since:
- 1.18.0
-
-
Field Summary
Fields Modifier and Type Field Description private Attributesattributesprivate java.lang.Stringnameprivate java.lang.StringschemaUrlprivate java.lang.Stringversion
-
Constructor Summary
Constructors Constructor Description InstrumentationScopeInfoBuilder(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstrumentationScopeInfobuild()Return aInstrumentationScopeInfowith the configuration of this builder.InstrumentationScopeInfoBuildersetAttributes(Attributes attributes)Set the attributes.InstrumentationScopeInfoBuildersetSchemaUrl(java.lang.String schemaUrl)Set the schema URL.InstrumentationScopeInfoBuildersetVersion(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 aInstrumentationScopeInfowith the configuration of this builder.
-
-