Abacn commented on PR #32037:
URL: https://github.com/apache/beam/pull/32037#issuecomment-2261210212

   tested on integration test (rebased on #32022)
   
   PubsubReadIT:
   
   after
   
   ```
   PipelineResult job = pipeline.run();
   ```
   
   print
   
   ```
   
(job.metrics().queryMetrics(MetricsFilter.builder().addNameFilter(MetricNameFilter.named(LINEAGE_NAMESPACE,
 SOURCE_METRIC_NAME)).build()).getStringSets());
   ```
   
   get
   
   ```
   
StringSetResult{stringSet=[pubsub:topic:pubsub-public-data.taxirides-realtime]}}
   ```
   
   PubsubWriteIT:
   
   replace to use `SINK_METRIC_NAME`, query gets
   
   ```
   
StringSetResult{stringSet=[pubsub:topic:apache-beam-testing.pubsub-write-1722451794792
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to