Title: fix: always initialize _lock in Metric.__init__ by muhamedfazalps · Pull Request #1187 · prometheus/client_python · GitHub
Open Graph Title: fix: always initialize _lock in Metric.__init__ by muhamedfazalps · Pull Request #1187 · prometheus/client_python
X Title: fix: always initialize _lock in Metric.__init__ by muhamedfazalps · Pull Request #1187 · prometheus/client_python
Description: Prometheus instrumentation library for Python applications - fix: always initialize _lock in Metric.__init__ by muhamedfazalps · Pull Request #1187 · prometheus/client_python
Open Graph Description: Fixes #1140 When a metric has no labels (neither parent nor observable), self._lock was never created, causing AttributeError when clear() or other methods try to access it. Fix: Initialize self._l...
X Description: Fixes #1140 When a metric has no labels (neither parent nor observable), self._lock was never created, causing AttributeError when clear() or other methods try to access it. Fix: Initialize self._l...
Opengraph URL: https://github.com/prometheus/client_python/pull/1187
X: @github
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:b2a5ef8b-1138-617d-bf8f-9209a04c5bec |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CB46:7586F:A3552C:DE8F78:6A520453 |
| html-safe-nonce | 2a928aa9f5d64860ac4ffb1e5453f0faf6840dfc0f137a3182e854ef7a185e33 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjQ2Ojc1ODZGOkEzNTUyQzpERThGNzg6NkE1MjA0NTMiLCJ2aXNpdG9yX2lkIjoiNTM1NTQyNjU2OTkxMzQyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7ee7fe163b46a83d5cc0fcb09e5ceb597216d43b16c9e8eb1d2a214357ed1de8 |
| hovercard-subject-tag | pull_request:4014552017 |
| 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/_view_fragments/voltron/pull_requests/show/prometheus/client_python/1187/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/6dbc9322bfc9ac57e3b0b8c49f2906bb308c46fe46e08caae0494eea562406eb/prometheus/client_python/pull/1187 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6dbc9322bfc9ac57e3b0b8c49f2906bb308c46fe46e08caae0494eea562406eb/prometheus/client_python/pull/1187 |
| og:image:alt | Fixes #1140 When a metric has no labels (neither parent nor observable), self._lock was never created, causing AttributeError when clear() or other methods try to access it. Fix: Initialize self._l... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | muhamedfazalps |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-cache |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width