René's URL Explorer Experiment


Title: Thread safety done right by haizaar · Pull Request #290 · prometheus/client_python · GitHub

Open Graph Title: Thread safety done right by haizaar · Pull Request #290 · prometheus/client_python

X Title: Thread safety done right by haizaar · Pull Request #290 · prometheus/client_python

Description: Prometheus instrumentation library for Python applications - Thread safety done right by haizaar · Pull Request #290 · prometheus/client_python

Open Graph Description: Fixes #287. Creates new timer object on each invocation - this solves both reentrancy and thread safety (added a test for reentrancy). It's about 5% slower than the previous version with TLS, b...

X Description: Fixes #287. Creates new timer object on each invocation - this solves both reentrancy and thread safety (added a test for reentrancy). It's about 5% slower than the previous version with TL...

Opengraph URL: https://github.com/prometheus/client_python/pull/290

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:f9b490b0-84d4-05d1-075d-516ef489620b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8A1E:125C99:ADD607:DB6BFB:69917F75
html-safe-noncef4a8e3b86b22d274ec882122e2de4892a767e80bbe1a144f3226180db11f7e7b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTFFOjEyNUM5OTpBREQ2MDc6REI2QkZCOjY5OTE3Rjc1IiwidmlzaXRvcl9pZCI6IjE1MjkzOTY4MzQ2NDQwOTg5MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3b26868911818cde275bd551d5d4311a5b9822838c1df3a05843231c2a19004e
hovercard-subject-tagpull_request:202842937
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/prometheus/client_python/290/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/66e68ab1d4603ba5ac76c7d8dff0c1f5dc454f773014cd36c812df97b8fa420e/prometheus/client_python/pull/290
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/66e68ab1d4603ba5ac76c7d8dff0c1f5dc454f773014cd36c812df97b8fa420e/prometheus/client_python/pull/290
og:image:altFixes #287. Creates new timer object on each invocation - this solves both reentrancy and thread safety (added a test for reentrancy). It's about 5% slower than the previous version with TLS, b...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehaizaar
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-cache
go-importgithub.com/prometheus/client_python git https://github.com/prometheus/client_python.git
octolytics-dimension-user_id3380462
octolytics-dimension-user_loginprometheus
octolytics-dimension-repository_id30618733
octolytics-dimension-repository_nwoprometheus/client_python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id30618733
octolytics-dimension-repository_network_root_nwoprometheus/client_python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/prometheus/client_python/pull/290#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_python%2Fpull%2F290
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_python%2Fpull%2F290
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=prometheus%2Fclient_python
Reloadhttps://github.com/prometheus/client_python/pull/290
Reloadhttps://github.com/prometheus/client_python/pull/290
Reloadhttps://github.com/prometheus/client_python/pull/290
prometheus https://github.com/prometheus
client_pythonhttps://github.com/prometheus/client_python
Notifications https://github.com/login?return_to=%2Fprometheus%2Fclient_python
Fork 842 https://github.com/login?return_to=%2Fprometheus%2Fclient_python
Star 4.3k https://github.com/login?return_to=%2Fprometheus%2Fclient_python
Code https://github.com/prometheus/client_python
Issues 105 https://github.com/prometheus/client_python/issues
Pull requests 28 https://github.com/prometheus/client_python/pulls
Discussions https://github.com/prometheus/client_python/discussions
Actions https://github.com/prometheus/client_python/actions
Projects 0 https://github.com/prometheus/client_python/projects
Wiki https://github.com/prometheus/client_python/wiki
Security 0 https://github.com/prometheus/client_python/security
Insights https://github.com/prometheus/client_python/pulse
Code https://github.com/prometheus/client_python
Issues https://github.com/prometheus/client_python/issues
Pull requests https://github.com/prometheus/client_python/pulls
Discussions https://github.com/prometheus/client_python/discussions
Actions https://github.com/prometheus/client_python/actions
Projects https://github.com/prometheus/client_python/projects
Wiki https://github.com/prometheus/client_python/wiki
Security https://github.com/prometheus/client_python/security
Insights https://github.com/prometheus/client_python/pulse
brian-brazilhttps://github.com/brian-brazil
prometheus:masterhttps://github.com/prometheus/client_python/tree/master
haizaar:thread-safetyhttps://github.com/haizaar/client_python/tree/thread-safety
Conversationhttps://github.com/prometheus/client_python/pull/290
Commits8 (8)https://github.com/prometheus/client_python/pull/290/commits
Checkshttps://github.com/prometheus/client_python/pull/290/checks
Files changedhttps://github.com/prometheus/client_python/pull/290/files
Thread safety done righthttps://github.com/prometheus/client_python/pull/290#top
brian-brazilhttps://github.com/brian-brazil
prometheus:masterhttps://github.com/prometheus/client_python/tree/master
haizaar:thread-safetyhttps://github.com/haizaar/client_python/tree/thread-safety
https://github.com/haizaar
haizaarhttps://github.com/haizaar
Jul 20, 2018https://github.com/prometheus/client_python/pull/290#issue-343099323
#287https://github.com/prometheus/client_python/issues/287
Please reload this pagehttps://github.com/prometheus/client_python/pull/290
haizaarhttps://github.com/haizaar
July 20, 2018 22:53https://github.com/prometheus/client_python/pull/290#commits-pushed-87a984a
https://github.com/haizaar
Multithreading support for time() decoratorshttps://github.com/prometheus/client_python/pull/290/commits/87a984a4e3606d712be17358a2d58276ce460f0f
87a984ahttps://github.com/prometheus/client_python/pull/290/commits/87a984a4e3606d712be17358a2d58276ce460f0f
prometheus#287https://github.com/prometheus/client_python/issues/287
https://github.com/haizaar
Installing futures package for Python 2.xhttps://github.com/prometheus/client_python/pull/290/commits/8db16f909fb84eb9031fdfd5cbbb689bd921b26e
8db16f9https://github.com/prometheus/client_python/pull/290/commits/8db16f909fb84eb9031fdfd5cbbb689bd921b26e
https://github.com/haizaar
Py2.x unittest compatabilityhttps://github.com/prometheus/client_python/pull/290/commits/6fac35c3796b7e6c78cfa214f7c62ff53fa8e928
6fac35chttps://github.com/prometheus/client_python/pull/290/commits/6fac35c3796b7e6c78cfa214f7c62ff53fa8e928
https://github.com/haizaar
Fixing text environment for Py27 multithreadhttps://github.com/prometheus/client_python/pull/290/commits/8db71178c72ec7d893d4d5064483359a774f2c44
8db7117https://github.com/prometheus/client_python/pull/290/commits/8db71178c72ec7d893d4d5064483359a774f2c44
https://github.com/haizaar
pypy needs futures for testing as wellhttps://github.com/prometheus/client_python/pull/290/commits/0aaa3b19f5ed2640d9f400e9c4829c679f79247a
0aaa3b1https://github.com/prometheus/client_python/pull/290/commits/0aaa3b19f5ed2640d9f400e9c4829c679f79247a
https://github.com/haizaar
Ensuring that different instances of timer do not interferehttps://github.com/prometheus/client_python/pull/290/commits/dc37fa11a880c631b7615150b7075e9877d2d695
dc37fa1https://github.com/prometheus/client_python/pull/290/commits/dc37fa11a880c631b7615150b7075e9877d2d695
https://github.com/haizaar
Python2.6 compliancehttps://github.com/prometheus/client_python/pull/290/commits/589be96c9d74d5da9393ae639add7f8778a6674f
589be96https://github.com/prometheus/client_python/pull/290/commits/589be96c9d74d5da9393ae639add7f8778a6674f
https://github.com/haizaar
Using new object instead of thread local storagehttps://github.com/prometheus/client_python/pull/290/commits/34721a9d2a1a17959bca159227dfe42aaa1b0a3d
34721a9https://github.com/prometheus/client_python/pull/290/commits/34721a9d2a1a17959bca159227dfe42aaa1b0a3d
https://github.com/haizaar
haizaarhttps://github.com/haizaar
Jul 20, 2018 https://github.com/prometheus/client_python/pull/290#ref-pullrequest-340111507
Multithreading fixes #288 https://github.com/prometheus/client_python/pull/288
https://github.com/brian-brazil
brian-brazilhttps://github.com/brian-brazil
889a6fbhttps://github.com/prometheus/client_python/commit/889a6fb91636c6d1b0728436686f7017c9a778b1
Jul 24, 2018https://github.com/prometheus/client_python/pull/290#event-1750576119
https://github.com/brian-brazil
brian-brazilhttps://github.com/brian-brazil
Jul 24, 2018https://github.com/prometheus/client_python/pull/290#issuecomment-407461180
Please reload this pagehttps://github.com/prometheus/client_python/pull/290
https://github.com/haizaar
haizaarhttps://github.com/haizaar
Jul 25, 2018https://github.com/prometheus/client_python/pull/290#issuecomment-407640595
Please reload this pagehttps://github.com/prometheus/client_python/pull/290
https://github.com/brian-brazil
brian-brazilhttps://github.com/brian-brazil
Jul 25, 2018https://github.com/prometheus/client_python/pull/290#issuecomment-407657746
Please reload this pagehttps://github.com/prometheus/client_python/pull/290
https://github.co/hiddenchars
https://github.com/prometheus/client_python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_python%2Fpull%2F290
Please reload this pagehttps://github.com/prometheus/client_python/pull/290
https://github.com/haizaar
https://github.com/brian-brazil
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.