InstanaAgent class
Class providing all methods related to the setup and usage of the Instana Flutter agent
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
-
getSessionID(
) → Future< String?> - Returns unique ID assigned by Instana to current session
-
redactHTTPQuery(
{required List< String> regex}) → Future<void> - Provide a List of String with regular expressions to redact values from the captured http query Example: "passwor(t|d)" to redact the password or passwort parameter
-
reportEvent(
{required String name, EventOptions? options}) → Future< void> - Sends a Custom Event beacon to Instana
-
setCaptureHeaders(
{required List< String> regex}) → Future<void> - Capture HTTP header fields by providing a list of regular expressions strings that match the HTTP field keys.
-
setCollectionEnabled(
bool enable) → Future< void> - Enable or disable collection (opt-in or opt-out)
-
setMeta(
{required String key, required String value}) → Future< void> - Sets Key-Value pair which all new beacons will be associated with
-
setup(
{required String key, required String reportingUrl, SetupOptions? options}) → Future< bool> -
Initializes Instana with a
key
andreportingUrl
and optionally with SetupOptions -
setUserEmail(
String? email) → Future< void> - Sets User email which all new beacons will be associated with
-
setUserID(
String? userID) → Future< void> - Sets custom User ID which all new beacons will be associated with
-
setUserName(
String? name) → Future< void> - Sets User name which all new beacons will be associated with
-
setView(
String? name) → Future< void> - Sets Human-readable name of logical view to which new beacons will be associated
-
startCapture(
{required String url, required String method, String? viewName}) → Future< Marker> - Mark the start of an HTTP Request