-
Hi all, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
Hi @ppatierno! That PR was merged on July 6th and first available in the July 1.28.0 release. Its usable, but is still relatively new (as indicated by its "alpha" status). Please let us know if you find any issues! I'm working on documenting the different OTLP exporter options - when / how to use them - but not quite there yet. This [comment
|
Beta Was this translation helpful? Give feedback.
-
Hi @jack-berg. I want try to do the same for Infinispan. 09:28:03,288 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdkBuilder.build(AutoConfiguredOpenTelemetrySdkBuilder.java:423)
09:28:03,289 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at org.infinispan.server.core.telemetry.TelemetryServiceFactory.construct(TelemetryServiceFactory.java:37)
09:28:03,289 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at org.infinispan.factories.impl.BasicComponentRegistryImpl.doInstantiateWrapper(BasicComponentRegistryImpl.java:188)
09:28:03,290 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at org.infinispan.factories.impl.BasicComponentRegistryImpl.instantiateWrapper(BasicComponentRegistryImpl.java:178)
09:28:03,291 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at org.infinispan.factories.impl.BasicComponentRegistryImpl.getComponent0(BasicComponentRegistryImpl.java:143)
09:28:03,291 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at org.infinispan.factories.impl.BasicComponentRegistryImpl.getComponent(BasicComponentRegistryImpl.java:62)
09:28:03,292 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at org.infinispan.factories.AbstractComponentRegistry.getComponent(AbstractComponentRegistry.java:193)
09:28:03,292 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at org.infinispan.factories.AbstractComponentRegistry.getComponent(AbstractComponentRegistry.java:179)
09:28:03,293 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at org.infinispan.rest.RestServer.startInternal(RestServer.java:128)
09:28:03,293 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at org.infinispan.server.core.AbstractProtocolServer.start(AbstractProtocolServer.java:119)
09:28:03,294 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at org.infinispan.server.SecurityActions.lambda$startProtocolServer$2(SecurityActions.java:60)
09:28:03,294 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at org.infinispan.security.Security.doPrivileged(Security.java:49)
09:28:03,294 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at org.infinispan.server.SecurityActions.startProtocolServer(SecurityActions.java:59)
09:28:03,295 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at org.infinispan.server.Server.lambda$run$3(Server.java:467)
09:28:03,295 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
09:28:03,296 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
09:28:03,296 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
09:28:03,297 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at java.base/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290)
09:28:03,297 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
09:28:03,298 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
09:28:03,299 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
09:28:03,299 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
09:28:03,300 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
09:28:03,300 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
09:28:03,301 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: Caused by: java.lang.IllegalStateException: No GrpcSenderProvider found on classpath. Please add dependency on opentelemetry-exporter-sender-okhttp or opentelemetry-exporter-sender-grpc-upstream
09:28:03,302 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at io.opentelemetry.exporter.internal.grpc.GrpcExporterBuilder.resolveGrpcSenderProvider(GrpcExporterBuilder.java:229)
09:28:03,303 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at io.opentelemetry.exporter.internal.grpc.GrpcExporterBuilder.build(GrpcExporterBuilder.java:156)
09:28:03,303 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporterBuilder.build(OtlpGrpcSpanExporterBuilder.java:189)
09:28:03,304 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at io.opentelemetry.exporter.otlp.internal.OtlpSpanExporterProvider.createExporter(OtlpSpanExporterProvider.java:61)
09:28:03,305 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at io.opentelemetry.sdk.autoconfigure.internal.SpiHelper.lambda$loadConfigurable$0(SpiHelper.java:60)
09:28:03,305 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at io.opentelemetry.sdk.autoconfigure.internal.NamedSpiManager.tryLoadImplementationForName(NamedSpiManager.java:51)
09:28:03,306 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
09:28:03,307 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at io.opentelemetry.sdk.autoconfigure.internal.NamedSpiManager.getByName(NamedSpiManager.java:41)
09:28:03,308 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at io.opentelemetry.sdk.autoconfigure.SpanExporterConfiguration.configureExporter(SpanExporterConfiguration.java:91)
09:28:03,308 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at io.opentelemetry.sdk.autoconfigure.SpanExporterConfiguration.configureSpanExporters(SpanExporterConfiguration.java:67)
09:28:03,310 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at io.opentelemetry.sdk.autoconfigure.TracerProviderConfiguration.configureTracerProvider(TracerProviderConfiguration.java:53)
09:28:03,310 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: at io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdkBuilder.build(AutoConfiguredOpenTelemetrySdkBuilder.java:356)
09:28:03,311 INFO [o.i.CONTAINER] [o.i.s.f.RequestTracingIT#0]STDOUT: ... 23 more |
Beta Was this translation helpful? Give feedback.
-
Also without using the Autoconfigure module, if I try to manually build a span exporter: OtlpGrpcSpanExporter.builder().setEndpoint("http://localhost:4317").build(); I get the error: java.lang.IllegalStateException: No GrpcSenderProvider found on classpath. Please add dependency on opentelemetry-exporter-sender-okhttp or opentelemetry-exporter-sender-grpc-upstream
at io.opentelemetry.exporter.internal.grpc.GrpcExporterBuilder.resolveGrpcSenderProvider(GrpcExporterBuilder.java:229)
at io.opentelemetry.exporter.internal.grpc.GrpcExporterBuilder.build(GrpcExporterBuilder.java:156)
at io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporterBuilder.build(OtlpGrpcSpanExporterBuilder.java:189) |
Beta Was this translation helpful? Give feedback.
-
Do I need to add |
Beta Was this translation helpful? Give feedback.
Hi @ppatierno! That PR was merged on July 6th and first available in the July 1.28.0 release. Its usable, but is still relatively new (as indicated by its "alpha" status). Please let us know if you find any issues!
I'm working on documenting the different OTLP exporter options - when / how to use them - but not quite there yet. This [comment
(https://github.com/open-telemetry/opentelemetry.io/pull/3144#discussion_r1287632380) describes the situation at a high level. And here's an example of how you would use the jdk version via gradle: