@@ -242,6 +242,7 @@ private void syncFlush(String sessionId, ApplicationProcessState appState) {
242
242
}
243
243
244
244
// Adding Session ID info.
245
+ // TODO(b/394127311): Switch to using AQS.
245
246
gaugeMetricBuilder .setSessionId (sessionId );
246
247
247
248
transportManager .log (gaugeMetricBuilder .build (), appState );
@@ -250,17 +251,16 @@ private void syncFlush(String sessionId, ApplicationProcessState appState) {
250
251
/**
251
252
* Log the Gauge Metadata information to the transport.
252
253
*
253
- * @param sessionId The {@link PerfSession#sessionId ()} to which the collected Gauge Metrics
254
+ * @param aqsSessionId The {@link PerfSession#aqsSessionId()} ()} to which the collected Gauge Metrics
254
255
* should be associated with.
255
256
* @param appState The {@link ApplicationProcessState} for which these gauges are collected.
256
257
* @return true if GaugeMetadata was logged, false otherwise.
257
258
*/
258
- public boolean logGaugeMetadata (String sessionId , ApplicationProcessState appState ) {
259
- // TODO(b/394127311): Re-introduce logging of metadata for AQS.
259
+ public boolean logGaugeMetadata (String aqsSessionId , ApplicationProcessState appState ) {
260
260
if (gaugeMetadataManager != null ) {
261
261
GaugeMetric gaugeMetric =
262
262
GaugeMetric .newBuilder ()
263
- .setSessionId (sessionId )
263
+ .setSessionId (aqsSessionId )
264
264
.setGaugeMetadata (getGaugeMetadata ())
265
265
.build ();
266
266
transportManager .log (gaugeMetric , appState );
0 commit comments