Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Binary incompatibility with prometheus java simpleclient versions 0.11+ #2079

Open
iggyzap opened this issue Jul 28, 2021 · 2 comments
Open
Labels

Comments

@iggyzap
Copy link

iggyzap commented Jul 28, 2021

Please answer these questions before submitting a bug report.

What version of OpenCensus are you using?

0.16.1

What JVM are you using (java -version)?

openjdk version "11.0.9" 2020-10-20
OpenJDK Runtime Environment (build 11.0.9+11-alpine-r0)
OpenJDK 64-Bit Server VM (build 11.0.9+11-alpine-r0, mixed mode)

What did you do?

I've instrumented java server while using prometheus simple client version 0.11.0

What did you expect to see?

No errors

What did you see instead?

Jul 28, 2021 9:38:02 PM io.opencensus.exporter.stats.prometheus.PrometheusStatsCollector describe
WARNING: Exception thrown when describing metrics.
java.lang.NoSuchFieldError: UNTYPED
	at io.opencensus.exporter.stats.prometheus.PrometheusExportUtils.<clinit>(PrometheusExportUtils.java:91)
	at io.opencensus.exporter.stats.prometheus.PrometheusStatsCollector.describe(PrometheusStatsCollector.java:149)
	at io.prometheus.client.CollectorRegistry.collectorNames(CollectorRegistry.java:98)
	at io.prometheus.client.CollectorRegistry.register(CollectorRegistry.java:50)
	at io.prometheus.client.Collector.register(Collector.java:193)
	at io.prometheus.client.Collector.register(Collector.java:186)
	at io.opencensus.exporter.stats.prometheus.PrometheusStatsCollector.createAndRegister(PrometheusStatsCollector.java:72)
	at com.hertz.htp.toyota.grpc.ThinClient.run(ThinClient.java:115)
	at com.hertz.htp.toyota.grpc.ThinClient.main(ThinClient.java:266)

@iggyzap iggyzap added the bug label Jul 28, 2021
@iggyzap
Copy link
Author

iggyzap commented Jul 28, 2021

Related issue in prometheus tracker: prometheus/client_java#623

@2022H1030042G
Copy link

2022H1030042G commented Sep 7, 2022

@iggyzap Hi, is this issue still available? If yes, I would like to work on it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants