setAttribute method
- @Deprecated('Please migrate to the App Flows APIs: APM.startAppFlow, APM.endFlow, and APM.setFlowAttribute. This feature was deprecated in v13.0.0')
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;
}