HttpFeature mixin
Mixin for the Dynatrace Http Feature
- Superclass constraints
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
-
addEventModifier(
EventModifier eventModifier) → void -
Adds an event modifier, that is executed just before the event is transferred.
the event is transfered. This allows to modify the event to some extent.
inherited
-
applyUserPrivacyOptions(
UserPrivacyOptions userPrivacyOptions, {Platform? platform}) → void -
Applies the specified
userPrivacyOptionswhich contains information about crash reporting and data collection level. Creates a new session with the specified privacy settings and stores the privacy settings for future sessions. This method can only be used, when user opt-in feature is enabled. This method call has no effect, if the given privacy settings are identical to the previously specified privacy settings.inherited -
createHttpClient(
{Client? client, DynatraceHttpClientOptions options = const DynatraceHttpClientOptions.standard()}) → DynatraceHttpClient -
Creates an httpClient that will instrument and monitor the called http requests.
You can use your own Http client via
clientand modify behavior of monitoring viaoptions.override -
createWebRequestTiming(
String header, String url) → WebRequestTiming -
Creates a web request timing event by using a tag as
headerand aurlOnly used internally -
endSession(
{Platform? platform}) → void -
Closes the session in the next possible moment and create a new session.
All current actions are closed and sent to the server.
inherited
-
enterAction(
String name, {Platform? platform}) → DynatraceRootAction -
Creating a DynatraceRootAction which is able to have child actions. If
you enter null or an empty String for the
nameyou will get a root action which will be disabled.inherited -
flushEvents(
{Platform? platform}) → void -
Call this function to flush all collected events immediately. To reduce network chatter, the collected events are usually
sent in packages where the oldest event has an age of up to 2 minutes (the default; the maximum age can be configured).
Using this function, you can force sending of all collected events regardless of their age.
inherited
-
getCurrentAction(
) → DynatraceAction -
Returns the last currently open root action.
inherited
-
getHTTPTagForWebRequest(
String url) → Future< String?> -
Returns a web request tag for a certain
urlOnly used internally -
getUserPrivacyOptions(
{Platform? platform}) → Future< UserPrivacyOptions> -
Get the current user privacy options including data collection level (Off, Performance, UserBehavior)
and if crash reporting opt-in is enabled
inherited
-
identifyUser(
String? user, {Platform? platform}) → void -
Will attach a
userto the session so you can identify the session later on. The value will not be stored and has to be renewed for every new session.inherited -
isCrashReportingEnabled(
) → bool -
isCrashReportingEnabled returns true if crash reporting is enabled.
inherited
-
isEnabled(
) → bool -
Returns true is plugin is enabled.
inherited
-
measureAppStartTime(
) → void -
measureAppStartTime measures the time it takes to start the application.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeEventModifier(
EventModifier eventModifier) → void -
Removes event modifier from modifier chain
inherited
-
reportCrash(
String? errorName, String reason, String stacktrace, {Platform? platform}) → Future< void> -
Report an error which contains a
stacktraceand will therefor be reported as a real crash. The error includeserrorNameandreasonas well. IferrorNameis null or empty the crash will not be reported.inherited -
reportCrashWithException(
String crashName, Exception exceptionObject, {String? reason, Platform? platform, StackTrace? stacktrace}) → Future< void> -
Report an error which contains an
exceptionObjectand will therefor be reported as a real crash. The error includescrashNameas well asreasonif you include it. Asstacktraceis not a part of exception class, it has to be reported separately. IfcrashNameis null or empty or theexceptionObjectis empty the crash will not be reported.inherited -
reportDoubleValue(
String? valueName, double? value, {Platform? platform}) → void -
Reports a double
valuewith a specifiedvalueName. Be aware that those methods are helper methods and are internally attaching the value to the latest opened action. If there is no open action, the value will not be reported.inherited -
reportError(
String? errorName, int? errorCode, {Platform? platform}) → void -
Report an error with
errorNameanderrorCodedirectly without any action.errorCodeis nullable but within implementation it has default value 0 IferrorNameis null or empty the error will not be reported.inherited -
reportErrorInAction(
String? errorName, int? errorCode, {Platform? platform}) → void -
Reports an error with a specified
errorName,errorCode. Be aware that those methods are helper methods and are internally attaching the value to the latest opened action. If there is no open action, the value will not be reported.inherited -
reportErrorStacktrace(
String errorName, String errorValue, String reason, String stacktrace, {Platform? platform}) → void -
Report an error with
errorName,errorValue,reasonandstacktracedirectly without any action. IferrorNameis null or empty the error will not be reported.inherited -
reportEvent(
String? eventName, {Platform? platform}) → void -
Reports an event with a specified
eventName. Be aware that those methods are helper methods and are internally attaching the value to the latest opened action. If there is no open action, the value will not be reported.inherited -
reportIntValue(
String? valueName, int? value, {Platform? platform}) → void -
Reports an int
valuewith a specifiedvalueName. Be aware that those methods are helper methods and are internally attaching the value to the latest opened action. If there is no open action, the value will not be reported.inherited -
reportStringValue(
String? valueName, String? value, {Platform? platform}) → void -
Reports a String
valuewith a specifiedvalueName. Be aware that those methods are helper methods and are internally attaching the value to the latest opened action. If there is no open action, the value will not be reported.inherited -
reportZoneStacktrace(
dynamic error, StackTrace stacktrace, {Platform? platform}) → Future< void> -
Report an error with
errorandstacktraceinside of a zone.^ Iferroris null or if there is no error.runtimeType available the error will not be reported.inherited -
sendBizEvent(
String type, Map< String, dynamic> ? attributes, {Platform? platform}) → void -
With sendBizEvent, you can report a business event. These standalone events are being sent
detached from user actions or sessions. Sends an event with Mandatory event
typeand optionalattributes.inherited -
sendEvent(
Map< String, dynamic> json) → void -
Sends an event with the given type in form of json as map
inherited
-
sendExceptionEvent(
dynamic throwable, {StackTrace? stacktrace, Map< String, dynamic> fields}) → void -
Sends exception event through eventModifier
inherited
-
sendHttpRequestEvent(
HttpRequestEventBuilder builder) → void -
Sends an HTTP request event built via
builder.override -
sendSessionPropertyEvent(
Map< String, dynamic> json) → void -
Sends a Session Properties Event
inherited
-
setGPSLocation(
double latitude, double longitude, {Platform? platform}) → void -
Sets the GPS location of the session with
latitudeandlongitude.inherited -
start(
Widget topLevelWidget, {Configuration configuration}) → Future< void> -
Start function which should be called to start the agent. The
topLevelWidgetis the widget which is starting the application. The Configuration contains default values for all properties. reportCrash value is true per default.inherited -
startView(
String name) → void -
A view refers to a view/screen/window which is presented to the user at any time. On every opening of a view the
method can be called to highlight the current view context of the user. All events happening
thereafter can be evaluated in context of that view. When another view was started previously, then this method
will stop view monitoring for the previous view and start it for the current view.
inherited
-
startWithoutWidget(
{Configuration configuration}) → Future< void> -
Start function which should be called to start the agent. This option will capture uncaught
exceptions but will not capture zoned errors. The Configuration contains
default values for all properties. reportCrash value is true per default.
inherited
-
stopView(
) → void -
Stops monitoring of the view that was previously started via startView It will remove
the view context and all events happening afterwards will be reported without view information.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited