InstrumentationScopeCreate class
Factory class for creating InstrumentationScope instances. Used internally and not exported to respect factories. This class is not intended to be used directly by users. Instead, use the methods provided by the OTelAPI.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
{required String name, String version = '1.0.0', String? schemaUrl, Attributes? attributes}) → InstrumentationScope -
Creates a new InstrumentationScope instance containing the specified attributes.
name
is required and represents the instrumentation scope name (e.g. 'io.opentelemetry.contrib.mongodb')version
is optional and specifies the version of the instrumentation scopeschemaUrl
is optional and specifies the Schema URLattributes
is optional and specifies instrumentation scope attributes @return A new InstrumentationScope instance