You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ballerina: started Prometheus HTTP listener 0.0.0.0:9797
[2024-04-15 18:56:38,274] SEVERE {b7a.log.crash} - 'io.opentelemetry.api.metrics.LongCounterBuilder io.opentelemetry.api.metrics.Meter.longCounterBuilder(java.lang.String)'
java.lang.NoSuchMethodError: 'io.opentelemetry.api.metrics.LongCounterBuilder io.opentelemetry.api.metrics.Meter.longCounterBuilder(java.lang.String)'
at io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporter.<init>(OtlpGrpcSpanExporter.java:64)
at io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporterBuilder.build(OtlpGrpcSpanExporterBuilder.java:188)
at io.ballerina.observe.trace.jaeger.JaegerTracerProvider.initializeConfigurations(JaegerTracerProvider.java:73)
at ballerinax.jaeger.0.tracer_provider.externInitializeConfigurations(tracer_provider.bal:47)
at ballerinax.jaeger.0.tracer_provider.init(tracer_provider.bal:42)
at ballerinax.jaeger.0.$_init.$gen$&0046&0060init&0062(jaeger:1)
at maryam.obs_proj.0.$_init.$moduleInit(obs_proj)
at maryam.obs_proj.0.$_init.$moduleExecute(obs_proj)
at maryam.obs_proj.0.$_init.$lambda$$moduleExecute$(obs_proj)
at io.ballerina.runtime.internal.scheduling.SchedulerItem.execute(SchedulerItem.java:54)
at io.ballerina.runtime.internal.scheduling.Scheduler.run(Scheduler.java:320)
at io.ballerina.runtime.internal.scheduling.Scheduler.runSafely(Scheduler.java:287)
at java.base/java.lang.Thread.run(Thread.java:833)
Steps to Reproduce
importballerina/http;
importballerina/log;
importballerinax/prometheusas_;
importballerinax/jaegeras_;
service/helloonnew http:Listener(9090) {
resourcefunction get sayHello(http:Callercaller, http:Requestreq) returnserror? {
log:printInfo("This is a test Info log");
log:printError("This is a test Error log");
http:Responseres=new;
res.setPayload("Hello, World!");
checkcaller->respond(res);
}
}
Tested locally with the changes in the above mentioned PR and works fine as expected.
MaryamZi
changed the title
[Bug]: java.lang.NoSuchMethodError with metrics enabled
[Bug]: java.lang.NoSuchMethodError with tracing enabled
Apr 16, 2024
Description
$title.
Steps to Reproduce
Affected Version(s)
2201.9.0 test pack
The text was updated successfully, but these errors were encountered: