Title: debug MetricWrapperBase.remove function by leileiwan · Pull Request #386 · prometheus/client_python · GitHub
Open Graph Title: debug MetricWrapperBase.remove function by leileiwan · Pull Request #386 · prometheus/client_python
X Title: debug MetricWrapperBase.remove function by leileiwan · Pull Request #386 · prometheus/client_python
Description: Hello,I am using client_python for developing our exporter,thanks for so convenient tool. In our project, we don't want some of our metrics to be captured, so we should use MetricWrapperBase's remove function.But when self._metrics is empty or "labelvalues" not in self._metrics, our exporter will stop because of "key error". As a user of the tool,I want some more information not just key error.what's worse,I don't want my exporter to be stoped. It would be better if just some warnings, because we have to be sure that some values of labels are not captured, but we cannot be sure that whether the value-tuples are in self._metrics or not.
Open Graph Description: Hello,I am using client_python for developing our exporter,thanks for so convenient tool. In our project, we don't want some of our metrics to be captured, so we should use MetricWrapperBase...
X Description: Hello,I am using client_python for developing our exporter,thanks for so convenient tool. In our project, we don't want some of our metrics to be captured, so we should use MetricWrapperBas...
Opengraph URL: https://github.com/prometheus/client_python/pull/386
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:71dd573a-4a31-a8c4-c344-9c9a93264fbb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EB2E:177E05:207976:2A3540:69920CEE |
| html-safe-nonce | 7dbd91cf26382a729800a2d58d35a03ddcf87a949cdd728f93ff1b196b399568 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjJFOjE3N0UwNToyMDc5NzY6MkEzNTQwOjY5OTIwQ0VFIiwidmlzaXRvcl9pZCI6IjczODIxNjQxNjYzNjEwOTEzMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6e8e475c8b586375edb7af84f8d4866d078fb7d9f3109c7c2209bd7a03be3df7 |
| hovercard-subject-tag | pull_request:262897727 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/prometheus/client_python/pull/386/files |
| twitter:image | https://avatars.githubusercontent.com/u/15318329?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/15318329?s=400&v=4 |
| og:image:alt | Hello,I am using client_python for developing our exporter,thanks for so convenient tool. In our project, we don't want some of our metrics to be captured, so we should use MetricWrapperBase... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/prometheus/client_python git https://github.com/prometheus/client_python.git |
| octolytics-dimension-user_id | 3380462 |
| octolytics-dimension-user_login | prometheus |
| octolytics-dimension-repository_id | 30618733 |
| octolytics-dimension-repository_nwo | prometheus/client_python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 30618733 |
| octolytics-dimension-repository_network_root_nwo | prometheus/client_python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width