TracingApi class abstract

Declares the functions that consist of Embrace's public API. You should not use TracingApi directly or implement it in your own custom classes, as new functions may be added in future. Use the Embrace class instead.

Implementers

Constructors

TracingApi()

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
recordCompletedSpan<T>(String name, int startTimeMs, int endTimeMs, {ErrorCode? errorCode, EmbraceSpan? parent, Map<String, String>? attributes, List<EmbraceSpanEvent>? events}) Future<bool>
Record a span with the given name, error code, parent, start time, and end time (epoch time in milliseconds). Passing in a parent that is null will result in a new trace with the new span as its root. A non-null ErrorCode can be passed in to denote the operation the span represents was ended unsuccessfully under the stated circumstances. You can also pass in a Map with String keys and values to be used as the attributes of the recorded span, or a List of EmbraceSpanEvent to be used as the events of the recorded span.
startSpan(String name, {EmbraceSpan? parent, int? startTimeMs}) Future<EmbraceSpan?>
Create and start a new span. Returns a reference to the new span on success and null on failure.
toString() String
A string representation of this object.
inherited

Operators

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