damccorm commented on code in PR #32116:
URL: https://github.com/apache/beam/pull/32116#discussion_r1710955748


##########
sdks/python/apache_beam/metrics/metric.py:
##########
@@ -305,3 +307,80 @@ def with_steps(self, steps: Iterable[str]) -> 
'MetricsFilter':
 
     self._steps.update(steps)
     return self
+
+
+class Lineage:
+  """Standard collection of metrics used to record source and sinks information
+  for lineage tracking."""
+
+  LINEAGE_NAMESPACE = "lineage"
+  SOURCE = "sources"
+  SINK = "sinks"
+
+  _METRICS = {
+      SOURCE: Metrics.string_set(LINEAGE_NAMESPACE, SOURCE),
+      SINK: Metrics.string_set(LINEAGE_NAMESPACE, SINK)
+  }
+
+  def __init__(self, label: str) -> None:
+    """Create a Lineage with valid babel (:data:`~Lineage.SOURCE` or

Review Comment:
   ```suggestion
       """Create a Lineage with valid label (:data:`~Lineage.SOURCE` or
   ```



-- 
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: github-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to