open-telemetry / opentelemetry-swift

OpenTelemetry API for Swift
https://opentelemetry.io/docs/instrumentation/swift/
Apache License 2.0
207 stars 124 forks source link

Allow Prometheus exporter to be used without HTTP server #551

Closed CallumTodd7 closed 1 month ago

CallumTodd7 commented 1 month ago

Currently the only way to use the Prometheus exporter is via PrometheusExporterHttpServer.

PrometheusExporterHttpServer calls PrometheusExporterExtensions.writeMetricsCollection to do the heavy lifting of building the response payload string. Allowing library users access to this function would allow for different/existing HTTP server frameworks to be used.

linux-foundation-easycla[bot] commented 1 month ago

CLA Signed


The committers listed above are authorized under a signed CLA.

nachoBonafonte commented 1 month ago

LGTM, thanks for your contribution.