Giter Club home page Giter Club logo

spring-observability's Introduction

spring-observability's People

Contributors

ahmadalammar avatar

Stargazers

Andy Nguyen avatar sky avatar João Paulo M avatar Claudio Seabra avatar Maged Milad avatar Antonis Antonopoulos avatar  avatar Tom Alexander avatar Saeed Zarinfam avatar  avatar Supa Mario avatar 苏凡 avatar  avatar Tuan Nguyen avatar K. Siva Prasad Reddy avatar

Watchers

 avatar

spring-observability's Issues

OpenTelemetryConfig runtime failure

After successfully cloning and running your project, I attempted to port it to my project.
Spring Boot 3.2.0, Spring Cloud 2023.0.0, JDK 17

I am getting the following runtime exception in the OpenTelemetryConfig

Caused by: java.lang.NoClassDefFoundError: okhttp3/OkHttpClient$Builder
	at io.opentelemetry.exporter.sender.okhttp.internal.OkHttpGrpcSender.<init>(OkHttpGrpcSender.java:79)
	at io.opentelemetry.exporter.sender.okhttp.internal.OkHttpGrpcSenderProvider.createSender(OkHttpGrpcSenderProvider.java:43)
	at io.opentelemetry.exporter.internal.grpc.GrpcExporterBuilder.build(GrpcExporterBuilder.java:158)
	at io.opentelemetry.exporter.otlp.logs.OtlpGrpcLogRecordExporterBuilder.build(OtlpGrpcLogRecordExporterBuilder.java:192)
	at com.bar.dp.ingest.config.observe.OpenTelemetryConfig.otelLogRecordProcessor(OpenTelemetryConfig.java:63)
	at com.bar.dp.ingest.config.observe.OpenTelemetryConfig$$SpringCGLIB$$0.CGLIB$otelLogRecordProcessor$1(<generated>)
	at com.bar.dp.ingest.config.observe.OpenTelemetryConfig$$SpringCGLIB$$FastClass$$1.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)
	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
	at com.bar.dp.ingest.config.observe.OpenTelemetryConfig$$SpringCGLIB$$0.otelLogRecordProcessor(<generated>)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:140)
	... 173 common frames omitted
Caused by: java.lang.ClassNotFoundException: okhttp3.OkHttpClient$Builder
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)

Version I have tried:
io.opentelemtry: 1.29.0, 1.31.0, 1.34.0, 1.34.1
io.opentelemetry.instrumentation: 1.29.0-alpha, 1.31.0-alpha, 2.0.0-alpha

I also tried convert this to Auto Configuration using the open telemetry java agent.

Caused by: java.lang.AbstractMethodError: Receiver class io.opentelemetry.exporter.sender.okhttp.internal.OkHttpGrpcSenderProvider does not define or inherit an implementation of the resolved method 'abstract io.opentelemetry.exporter.internal.grpc.GrpcSender createSender(java.net.URI, java.lang.String, boolean, long, java.util.function.Supplier, java.lang.Object, java.util.function.Supplier, io.opentelemetry.sdk.common.export.RetryPolicy, javax.net.ssl.SSLContext, javax.net.ssl.X509TrustManager)' of interface io.opentelemetry.exporter.internal.grpc.GrpcSenderProvider.

Not to be confused but I do have squareup.okhtp3 dependency on a test scope.

Any help is appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.