reportInstrumentationConfigurationStatus method
Future<ReportInstrumentationConfigurationStatusResponse>
reportInstrumentationConfigurationStatus({})
Reports the status of one or more instrumentation configurations from SDK instances. Use this to record when configurations become ready, hit errors, become active, or are disabled by limits.
Report READY, ERROR, and DISABLED
when the status changes. Report ACTIVE periodically (for
example, every minute) while instrumentation is running.
May throw ThrottlingException.
May throw ValidationException.
Parameter configurations :
An array of configuration status reports (up to 100) that include the
instrumentation type, signal type, location hash, status, timestamp, and
optional error cause.
Parameter environment :
The environment that the service is running in.
Parameter service :
The service that the reported configurations belong to.
Implementation
Future<ReportInstrumentationConfigurationStatusResponse>
reportInstrumentationConfigurationStatus({
required List<InstrumentationConfigurationStatusReport> configurations,
required String environment,
required String service,
}) async {
final $payload = <String, dynamic>{
'Configurations': configurations,
'Environment': environment,
'Service': service,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/report-instrumentation-configuration-status',
exceptionFnMap: _exceptionFns,
);
return ReportInstrumentationConfigurationStatusResponse.fromJson(response);
}