SpanMetadata class

Backend-agnostic description of a span about to be created.

A SpanMetadata carries everything an Instrumentation provider needs to start a span. It intentionally uses plain Dart types (no OpenTelemetry dependency), leaving the encoding of values up to each provider.

Constructors

SpanMetadata({required String name, String? actionType, Object? input, Map<String, Object?> attributes = const {}})
const

Properties

actionType String?
The Genkit action type, e.g. 'flow', 'model', 'tool'.
final
attributes Map<String, Object?>
Additional static attributes supplied by the caller.
final
hashCode int
The hash code for this object.
no setterinherited
input Object?
The raw input passed to the wrapped operation.
final
name String
The span name (typically the action or operation name).
final
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