setAttribute method

  1. @Deprecated('Please migrate to the App Flows APIs: APM.startAppFlow, APM.endFlow, and APM.setFlowAttribute. This feature was deprecated in v13.0.0')
void setAttribute(
  1. String key,
  2. String value
)

Sets attribute of execution trace. String id of the trace. String key of attribute. String value of attribute.

Please migrate to the App Flows APIs: APM.startFlow, APM.setFlowAttribute, and APM.endFlow.

Implementation

@Deprecated(
  'Please migrate to the App Flows APIs: APM.startAppFlow, APM.endFlow, and APM.setFlowAttribute. This feature was deprecated in v13.0.0',
)
void setAttribute(String key, String value) {
  APM.setExecutionTraceAttribute(id, key, value);
  attributes[key] = value;
}