ISentrySpan class abstract

Represents performance monitoring Span.

Implementers

Constructors

ISentrySpan()

Properties

context SentrySpanContext
Gets the span context.
read-only
endTimestamp DateTime?
Returns the end timestamp if finished
read-only
finished bool
Returns true if span is finished
read-only
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
samplingDecision SentryTracesSamplingDecision?
read-only
startTimestamp DateTime
Returns the star timestamp
read-only
status SpanStatus?
Gets span status.
read / write
throwable ↔ dynamic
Returns the associated error
read / write

Methods

finish({SpanStatus? status, DateTime? endTimestamp}) Future<void>
Sets span timestamp marking this span as finished.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeData(String key) → void
Removes extra data on span or transaction.
removeTag(String key) → void
Removes the tag on span or transaction.
scheduleFinish() → void
setData(String key, dynamic value) → void
Sets extra data on span or transaction.
setMeasurement(String name, num value, {SentryMeasurementUnit? unit}) → void
Set observed measurement for this transaction.
setTag(String key, String value) → void
Sets the tag on span or transaction.
startChild(String operation, {String? description, DateTime? startTimestamp}) ISentrySpan
Starts a child Span.
toBaggageHeader() SentryBaggageHeader?
Returns the baggage that can be sent as "baggage" header.
toSentryTrace() SentryTraceHeader
Returns the trace information that could be sent as a sentry-trace header.
toString() String
A string representation of this object.
inherited
traceContext() SentryTraceContextHeader?
Returns the trace context.

Operators

operator ==(Object other) bool
The equality operator.
inherited