def METHOD_NAME(elasticapm_client, prometheus):
    metricset = PrometheusMetrics(MetricsRegistry(elasticapm_client))
    gauge = prometheus_client.Gauge("a_bare_gauge", "Bare gauge")
    gauge_with_labels = prometheus_client.Gauge("gauge_with_labels", "Gauge with labels", ["alabel", "anotherlabel"])
    gauge.set(5)
    gauge_with_labels.labels(alabel="foo", anotherlabel="baz").set(7)
    gauge_with_labels.labels(alabel="bar", anotherlabel="bazzinga").set(11)
    gauge_with_labels.labels(alabel="foo", anotherlabel="baz").set(2)
    data = list(metricset.collect())
    assert len(data) == 3
    assert data[0]["samples"]["prometheus.metrics.a_bare_gauge"]["value"] == 5.0
    assert data[1]["samples"]["prometheus.metrics.gauge_with_labels"]["value"] == 2.0
    assert data[1]["tags"] == {"alabel": "foo", "anotherlabel": "baz"}
    assert data[2]["samples"]["prometheus.metrics.gauge_with_labels"]["value"] == 11.0
    assert data[2]["tags"] == {"alabel": "bar", "anotherlabel": "bazzinga"}