Skip to content

Commit

Permalink
Make PrometheusExporterExtensions.writeMetricsCollection public
Browse files Browse the repository at this point in the history
  • Loading branch information
CallumTodd7 authored Jun 30, 2024
1 parent 5429db4 commit c3ce162
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public enum PrometheusExporterExtensions {
static let prometheusHistogramBucketPostFix = "_bucket"
static let prometheusHistogramLeLabelName = "le"

static func writeMetricsCollection(exporter: PrometheusExporter) -> String {
public static func writeMetricsCollection(exporter: PrometheusExporter) -> String {
var output = ""
let metrics = exporter.getAndClearMetrics()
let now = String(Int64((Date().timeIntervalSince1970 * 1000.0).rounded()))
Expand Down

0 comments on commit c3ce162

Please sign in to comment.