René's URL Explorer Experiment


Title: Assert label values be str or unicode by kehao95 · Pull Request #177 · prometheus/client_python · GitHub

Open Graph Title: Assert label values be str or unicode by kehao95 · Pull Request #177 · prometheus/client_python

X Title: Assert label values be str or unicode by kehao95 · Pull Request #177 · prometheus/client_python

Description: Prometheus instrumentation library for Python applications - Assert label values be str or unicode by kehao95 · Pull Request #177 · prometheus/client_python

Open Graph Description: Right now, if you call add_metric() method with no string variables. Nothing will happen. But will raise meanless AttributError when first scrape. quick reproduce import time from prometheus_client...

X Description: Right now, if you call add_metric() method with no string variables. Nothing will happen. But will raise meanless AttributError when first scrape. quick reproduce import time from prometheus_client...

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

X: @github

direct link

Domain: patch-diff.githubusercontent.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:c11c8068-1a71-50e9-a740-4425cc803ab7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id94DA:D7AB6:14FEFA6:1AB19A5:69916A27
html-safe-nonceb0964323f297eeb1853f8e2fe1193a9b77457525a70b6c9cf38556be8b1a74ec
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NERBOkQ3QUI2OjE0RkVGQTY6MUFCMTlBNTo2OTkxNkEyNyIsInZpc2l0b3JfaWQiOiIzNzIyOTg5NTIwNjYyMTI5MTkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9af10f476040085fcc7e3201c90255b9a743cf7e41d77ca21c2461b72fac2ed5
hovercard-subject-tagpull_request:130066388
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/177/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/adf7c7c32c97f3531dcb06db941038fa1d9c88a721bc92fe7a44ecb3ec31da58/prometheus/client_python/pull/177
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/adf7c7c32c97f3531dcb06db941038fa1d9c88a721bc92fe7a44ecb3ec31da58/prometheus/client_python/pull/177
og:image:altRight now, if you call add_metric() method with no string variables. Nothing will happen. But will raise meanless AttributError when first scrape. quick reproduce import time from prometheus_client...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekehao95
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://patch-diff.githubusercontent.com/prometheus/client_python/pull/177#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_python%2Fpull%2F177
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_python%2Fpull%2F177
Sign up https://patch-diff.githubusercontent.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://patch-diff.githubusercontent.com/prometheus/client_python/pull/177
Reloadhttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177
Reloadhttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177
prometheus https://patch-diff.githubusercontent.com/prometheus
client_pythonhttps://patch-diff.githubusercontent.com/prometheus/client_python
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fprometheus%2Fclient_python
Fork 842 https://patch-diff.githubusercontent.com/login?return_to=%2Fprometheus%2Fclient_python
Star 4.3k https://patch-diff.githubusercontent.com/login?return_to=%2Fprometheus%2Fclient_python
Code https://patch-diff.githubusercontent.com/prometheus/client_python
Issues 105 https://patch-diff.githubusercontent.com/prometheus/client_python/issues
Pull requests 28 https://patch-diff.githubusercontent.com/prometheus/client_python/pulls
Discussions https://patch-diff.githubusercontent.com/prometheus/client_python/discussions
Actions https://patch-diff.githubusercontent.com/prometheus/client_python/actions
Projects 0 https://patch-diff.githubusercontent.com/prometheus/client_python/projects
Wiki https://patch-diff.githubusercontent.com/prometheus/client_python/wiki
Security 0 https://patch-diff.githubusercontent.com/prometheus/client_python/security
Insights https://patch-diff.githubusercontent.com/prometheus/client_python/pulse
Code https://patch-diff.githubusercontent.com/prometheus/client_python
Issues https://patch-diff.githubusercontent.com/prometheus/client_python/issues
Pull requests https://patch-diff.githubusercontent.com/prometheus/client_python/pulls
Discussions https://patch-diff.githubusercontent.com/prometheus/client_python/discussions
Actions https://patch-diff.githubusercontent.com/prometheus/client_python/actions
Projects https://patch-diff.githubusercontent.com/prometheus/client_python/projects
Wiki https://patch-diff.githubusercontent.com/prometheus/client_python/wiki
Security https://patch-diff.githubusercontent.com/prometheus/client_python/security
Insights https://patch-diff.githubusercontent.com/prometheus/client_python/pulse
kehao95https://patch-diff.githubusercontent.com/kehao95
prometheus:masterhttps://patch-diff.githubusercontent.com/prometheus/client_python/tree/master
kehao95:masterhttps://patch-diff.githubusercontent.com/kehao95/client_python/tree/master
Conversationhttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177
Commits1 (1)https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177/commits
Checkshttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177/checks
Files changedhttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177/files
Assert label values be str or unicodehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177#top
kehao95https://patch-diff.githubusercontent.com/kehao95
prometheus:masterhttps://patch-diff.githubusercontent.com/prometheus/client_python/tree/master
kehao95:masterhttps://patch-diff.githubusercontent.com/kehao95/client_python/tree/master
https://patch-diff.githubusercontent.com/kehao95
kehao95https://patch-diff.githubusercontent.com/kehao95
Jul 12, 2017https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177#issue-242276883
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177
https://patch-diff.githubusercontent.com/kehao95
kehao95https://patch-diff.githubusercontent.com/kehao95
Jul 12, 2017https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177#issuecomment-314671521
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177
https://patch-diff.githubusercontent.com/kehao95
kehao95https://patch-diff.githubusercontent.com/kehao95
force-pushedhttps://patch-diff.githubusercontent.com/prometheus/client_python/compare/df8959cba2bf7e71a4255c9622278cb137424ee7..4831c4c8892f7b21539aedaf28e1e4db06d9b208
df8959chttps://patch-diff.githubusercontent.com/prometheus/client_python/commit/df8959cba2bf7e71a4255c9622278cb137424ee7
4831c4chttps://patch-diff.githubusercontent.com/prometheus/client_python/commit/4831c4c8892f7b21539aedaf28e1e4db06d9b208
Compare https://patch-diff.githubusercontent.com/prometheus/client_python/compare/df8959cba2bf7e71a4255c9622278cb137424ee7..4831c4c8892f7b21539aedaf28e1e4db06d9b208
July 12, 2017 07:07https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177#event-1160148200
https://patch-diff.githubusercontent.com/kehao95
kehao95https://patch-diff.githubusercontent.com/kehao95
Jul 12, 2017https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177#event-1160158966
https://patch-diff.githubusercontent.com/kehao95
Assert label values be StringTypehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177/commits/6dcb537d626ad12b89ce2b6c9508de7f07eea977
6dcb537https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177/commits/6dcb537d626ad12b89ce2b6c9508de7f07eea977
https://patch-diff.githubusercontent.com/kehao95
kehao95https://patch-diff.githubusercontent.com/kehao95
force-pushedhttps://patch-diff.githubusercontent.com/prometheus/client_python/compare/4831c4c8892f7b21539aedaf28e1e4db06d9b208..6dcb537d626ad12b89ce2b6c9508de7f07eea977
4831c4chttps://patch-diff.githubusercontent.com/prometheus/client_python/commit/4831c4c8892f7b21539aedaf28e1e4db06d9b208
6dcb537https://patch-diff.githubusercontent.com/prometheus/client_python/commit/6dcb537d626ad12b89ce2b6c9508de7f07eea977
Compare https://patch-diff.githubusercontent.com/prometheus/client_python/compare/4831c4c8892f7b21539aedaf28e1e4db06d9b208..6dcb537d626ad12b89ce2b6c9508de7f07eea977
July 12, 2017 07:15https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177#event-1160160584
https://patch-diff.githubusercontent.com/brian-brazil
brian-brazilhttps://patch-diff.githubusercontent.com/brian-brazil
Jul 12, 2017 https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177#pullrequestreview-49407482
View reviewed changes https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177/files/6dcb537d626ad12b89ce2b6c9508de7f07eea977
prometheus_client/core.pyhttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177/files/6dcb537d626ad12b89ce2b6c9508de7f07eea977#diff-967293d60d70f46e39be22646c5d4b4f4d70cec16f8f5b04b5330a2ca22ec1da
brian-brazilhttps://patch-diff.githubusercontent.com/brian-brazil
Jul 12, 2017https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177#discussion_r126881544
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177
kehao95https://patch-diff.githubusercontent.com/kehao95
Jul 12, 2017https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177#discussion_r126887258
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://stackoverflow.com/questions/11301138/how-to-check-if-variable-is-string-with-python-2-and-3-compatibilityhttps://stackoverflow.com/questions/11301138/how-to-check-if-variable-is-string-with-python-2-and-3-compatibility
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177
kehao95https://patch-diff.githubusercontent.com/kehao95
Jul 12, 2017https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177#discussion_r126890760
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
GitHub-benjaminp/sixhttps://github.com/benjaminp/six/blob/master/six.py
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177
brian-brazilhttps://patch-diff.githubusercontent.com/brian-brazil
Jul 12, 2017https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177#discussion_r126892329
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177
https://patch-diff.githubusercontent.com/brian-brazil
brian-brazilhttps://patch-diff.githubusercontent.com/brian-brazil
Mar 22, 2018https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177#issuecomment-375213518
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177
https://patch-diff.githubusercontent.com/brian-brazil
brian-brazilhttps://patch-diff.githubusercontent.com/brian-brazil
Mar 22, 2018https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177#event-1534980462
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/prometheus/client_python/pull/{{ revealButtonHref }}
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_python%2Fpull%2F177
https://patch-diff.githubusercontent.com/brian-brazil
brian-brazil https://patch-diff.githubusercontent.com/brian-brazil
https://patch-diff.githubusercontent.com/prometheus/client_python/pull/177/files/6dcb537d626ad12b89ce2b6c9508de7f07eea977
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/177
https://patch-diff.githubusercontent.com/kehao95
https://patch-diff.githubusercontent.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.