Skip to content

Commit

Permalink
use correct registry in response
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhillier committed Jun 1, 2020
1 parent 6ef4570 commit a9bda18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starlette_exporter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ def handle_metrics(request):
multiprocess.MultiProcessCollector(registry)

headers = {'Content-Type': CONTENT_TYPE_LATEST}
return Response(generate_latest(), status_code=200, headers=headers)
return Response(generate_latest(registry), status_code=200, headers=headers)

0 comments on commit a9bda18

Please sign in to comment.