Title: Got lots of warning logs (java.lang.NoSuchFieldError: timestampMs) when timestamp field is unset · Issue #384 · prometheus/client_java · GitHub
Open Graph Title: Got lots of warning logs (java.lang.NoSuchFieldError: timestampMs) when timestamp field is unset · Issue #384 · prometheus/client_java
X Title: Got lots of warning logs (java.lang.NoSuchFieldError: timestampMs) when timestamp field is unset · Issue #384 · prometheus/client_java
Description: Hi Prometheus, This is Yang from OpenCensus. Last year we added an OpenCensus Prometheus exporter that exports metrics to Prometheus end points. I saw you added an optional "timestamp" value as part of metric sample in #337 - on OpenCens...
Open Graph Description: Hi Prometheus, This is Yang from OpenCensus. Last year we added an OpenCensus Prometheus exporter that exports metrics to Prometheus end points. I saw you added an optional "timestamp" value as par...
X Description: Hi Prometheus, This is Yang from OpenCensus. Last year we added an OpenCensus Prometheus exporter that exports metrics to Prometheus end points. I saw you added an optional "timestamp" va...
Opengraph URL: https://github.com/prometheus/client_java/issues/384
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Got lots of warning logs (java.lang.NoSuchFieldError: timestampMs) when timestamp field is unset","articleBody":"Hi Prometheus,\r\n\r\nThis is Yang from OpenCensus. Last year we added an [OpenCensus Prometheus exporter](https://github.com/census-instrumentation/opencensus-java/tree/master/exporters/stats/prometheus) that exports metrics to Prometheus end points. I saw you added an optional `\"timestamp\"` value as part of metric sample in https://github.com/prometheus/client_java/pull/337 - on OpenCensus we haven't updated our exporter to set this field. However, when our users were using the OpenCensus Prometheus exporter, they got a bunch of warning logs saying (original issue: https://github.com/census-instrumentation/opencensus-java/issues/1215):\r\n\r\n```\r\n[WARNING] \r\njava.lang.NoSuchFieldError: timestampMs\r\n at io.prometheus.client.exporter.common.TextFormat.write004 (TextFormat.java:49)\r\n at io.prometheus.client.exporter.HTTPServer$HTTPMetricHandler.handle (HTTPServer.java:59)\r\n at com.sun.net.httpserver.Filter$Chain.doFilter (Filter.java:77)\r\n at sun.net.httpserver.AuthFilter.doFilter (AuthFilter.java:82)\r\n at com.sun.net.httpserver.Filter$Chain.doFilter (Filter.java:80)\r\n at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle (ServerImpl.java:685)\r\n at com.sun.net.httpserver.Filter$Chain.doFilter (Filter.java:77)\r\n at sun.net.httpserver.ServerImpl$Exchange.run (ServerImpl.java:657)\r\n at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)\r\n at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)\r\n at java.lang.Thread.run (Thread.java:844)\r\n```\r\n\r\nSince `\"timestamp\"` is an optional field, would it be better to reduce such warning logs when it is unset in the metric sample?","author":{"url":"https://github.com/songy23","@type":"Person","name":"songy23"},"datePublished":"2018-05-29T00:41:08Z","url":"https://github.com/prometheus/client_java/issues/384"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3f373ebf-8cbd-53b1-cecb-9e5661681c16 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C3C:1CF1FE:42BF1:5BD3E:6AFBF4F8 |
| html-safe-nonce | f1897cb19b63e3ce8cf71d291cc53c4c121f14fc21fbccd24b018ab9f3163518 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzNDOjFDRjFGRTo0MkJGMTo1QkQzRTo2QUZCRjRGOCIsInZpc2l0b3JfaWQiOiIyMTYyOTczNjEyNTU2Njc4MzkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a003bbb96a4d38e960a8929a0e25ea602d03eae871497efc2505ddeb41d3b33f |
| hovercard-subject-tag | issue:327138573 |
| github-keyboard-shortcuts | repository,issues,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/issues/show/prometheus/client_java/384/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bf1043d8c97ba3a64f3b4eff004b1de3b9ac97ff7b72b83e546c5d531018a6ab/prometheus/client_java/issues/384 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bf1043d8c97ba3a64f3b4eff004b1de3b9ac97ff7b72b83e546c5d531018a6ab/prometheus/client_java/issues/384 |
| og:image:alt | Hi Prometheus, This is Yang from OpenCensus. Last year we added an OpenCensus Prometheus exporter that exports metrics to Prometheus end points. I saw you added an optional "timestamp" value as par... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | songy23 |
| hostname | github.com |
| expected-hostname | github.com |
| None | fa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f |
| turbo-cache-control | no-preview |
| go-import | github.com/prometheus/client_java git https://github.com/prometheus/client_java.git |
| octolytics-dimension-user_id | 3380462 |
| octolytics-dimension-user_login | prometheus |
| octolytics-dimension-repository_id | 7997879 |
| octolytics-dimension-repository_nwo | prometheus/client_java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7997879 |
| octolytics-dimension-repository_network_root_nwo | prometheus/client_java |
| 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 | b3b5633a74535d9c23385512d534c66c8fde1907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width