Title: very small change to fix errors when handling datetime object from aws by wuarthur · Pull Request #422 · prometheus/client_python · GitHub
Open Graph Title: very small change to fix errors when handling datetime object from aws by wuarthur · Pull Request #422 · prometheus/client_python
X Title: very small change to fix errors when handling datetime object from aws by wuarthur · Pull Request #422 · prometheus/client_python
Description: Hi, I am trying to export CreateDate using the aws-prometheus-exporter the exporter fails because of an error in [exposition.py ] there seems to be an type error in this function, when v is expected to be a string, however sometimes aws return datas as an datetime object, which cause v.replace('\\', r'\\') errors out. i found that this can be fixed by minimally changing line 78 in exposition.py to k, str(v).replace('\\', r'\\').replace('\n', r'\n').replace('"', r'\"'))
Open Graph Description: Hi, I am trying to export CreateDate using the aws-prometheus-exporter the exporter fails because of an error in [exposition.py ] there seems to be an type error in this function, when v is expect...
X Description: Hi, I am trying to export CreateDate using the aws-prometheus-exporter the exporter fails because of an error in [exposition.py ] there seems to be an type error in this function, when v is expect...
Opengraph URL: https://github.com/prometheus/client_python/pull/422
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:e501614c-f9c0-05ad-d14f-a1697ceeb1d7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9C88:11DFBA:25D0489:2FE61AE:6991A356 |
| html-safe-nonce | c0258cd6371a47bf70073755bdd129a107ae51bb8ef8ba28ef4e9a11df1cc352 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qzg4OjExREZCQToyNUQwNDg5OjJGRTYxQUU6Njk5MUEzNTYiLCJ2aXNpdG9yX2lkIjoiNTUwNzMzMTYxNzkwNjA3NDQ1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 37a61d1ceede625729dc9304c440435a1544e1d024e4454f0a47888ea6ba35fb |
| hovercard-subject-tag | pull_request:285485919 |
| 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/422/files |
| twitter:image | https://avatars.githubusercontent.com/u/15177124?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/15177124?s=400&v=4 |
| og:image:alt | Hi, I am trying to export CreateDate using the aws-prometheus-exporter the exporter fails because of an error in [exposition.py ] there seems to be an type error in this function, when v is expect... |
| 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