deleteInstrumentationConfiguration method

Future<DeleteInstrumentationConfigurationResponse> deleteInstrumentationConfiguration({
  1. required String environment,
  2. required InstrumentationType instrumentationType,
  3. required LocationIdentifier locationIdentifier,
  4. required String service,
  5. required DynamicInstrumentationSignalType signalType,
})

Deletes the specified instrumentation configuration. SDKs remove the instrumentation during their next sync after the configuration is deleted or expires.

May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter environment : Environment name for the instrumentation configuration.

Parameter instrumentationType : Type of instrumentation configuration (BREAKPOINT or PROBE). Required to identify the configuration to delete.

Parameter locationIdentifier : Location identifier - either full code location or a pre-computed hash.

Parameter service : Service name for the instrumentation configuration.

Parameter signalType : Signal type for the instrumentation configuration.

Implementation

Future<DeleteInstrumentationConfigurationResponse>
    deleteInstrumentationConfiguration({
  required String environment,
  required InstrumentationType instrumentationType,
  required LocationIdentifier locationIdentifier,
  required String service,
  required DynamicInstrumentationSignalType signalType,
}) async {
  final $payload = <String, dynamic>{
    'Environment': environment,
    'InstrumentationType': instrumentationType.value,
    'LocationIdentifier': locationIdentifier,
    'Service': service,
    'SignalType': signalType.value,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/delete-instrumentation-configuration',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteInstrumentationConfigurationResponse.fromJson(response);
}