def METHOD_NAME(registry: CollectorRegistry = REGISTRY, verbose: bool = False):
    """
    Collects timeseries samples from prometheus metric collector registry
    adds a common timestamp, and encodes them to protobuf
    Arguments:
        registry: a prometheus CollectorRegistry instance
        verbose: whether to optimize for bandwidth and ignore metric name/help
    Returns:
        a prometheus MetricFamily protobuf stream
    """
    timestamp_ms = int(time.time() * 1000)
    for metric_family in registry.collect():
        if metric_family.type in ('counter', 'gauge'):
            family_proto = encode_counter_gauge(metric_family, timestamp_ms)
        elif metric_family.type == 'summary':
            family_proto = encode_summary(metric_family, timestamp_ms)
        elif metric_family.type == 'histogram':
            family_proto = encode_histogram(metric_family, timestamp_ms)
        family_proto.name = metric_family.name
        if verbose:
            family_proto.help = metric_family.documentation
        yield family_proto