Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoconfigure errors #283

Open
systems1 opened this issue Dec 8, 2023 · 0 comments
Open

autoconfigure errors #283

systems1 opened this issue Dec 8, 2023 · 0 comments

Comments

@systems1
Copy link

systems1 commented Dec 8, 2023

windows 10 desktop
builds on my dos shell but doesnt run
doesnt even build on my wsl ubuntu ,same java ,gradle versions
copied the jar to wsl folder and get same errors

c:\github\opentelemetry-java-examples\autoconfigure>..\gradlew shadowJar
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

BUILD SUCCESSFUL in 19s
2 actionable tasks: 2 up-to-date
c:\code\github\opentelemetry-java-examples\autoconfigure>java -Dotel.traces.exporter=logging -Dotel.metrics.exporter=logging -cp build\libs\opentelemetry-examples-autoconfigure-0.1.0-SNAPSHOT-all.jar io.opentelemetry.example.autoconfigure.AutoConfigExample
Dec 07, 2023 10:43:11 PM io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdkBuilder build
INFO: Error encountered during autoconfiguration. Closing partially configured components.
Dec 07, 2023 10:43:11 PM io.opentelemetry.exporter.logging.LoggingMetricExporter shutdown
INFO: Calling shutdown() multiple times.
Dec 07, 2023 10:43:11 PM io.opentelemetry.exporter.logging.LoggingMetricExporter shutdown
INFO: Calling shutdown() multiple times.
Dec 07, 2023 10:43:11 PM io.opentelemetry.exporter.logging.LoggingSpanExporter shutdown
INFO: Calling shutdown() multiple times.
Exception in thread "main" io.opentelemetry.sdk.autoconfigure.spi.ConfigurationException: otel.logs.exporter set to "otlp" but opentelemetry-exporter-otlp not found on classpath. Make sure to add it as a dependency.
at io.opentelemetry.sdk.autoconfigure.LogRecordExporterConfiguration.configureExporter(LogRecordExporterConfiguration.java:95)
at io.opentelemetry.sdk.autoconfigure.LogRecordExporterConfiguration.configureLogRecordExporters(LogRecordExporterConfiguration.java:66)
at io.opentelemetry.sdk.autoconfigure.LoggerProviderConfiguration.configureLoggerProvider(LoggerProviderConfiguration.java:43)
at io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdkBuilder.build(AutoConfiguredOpenTelemetrySdkBuilder.java:383)
at io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdk.initialize(AutoConfiguredOpenTelemetrySdk.java:33)
at io.opentelemetry.example.autoconfigure.AutoConfigExample.main(AutoConfigExample.java:17)

c:\github\opentelemetry-java-examples\autoconfigure>java -version
openjdk version "21.0.1" 2023-10-17
OpenJDK Runtime Environment (build 21.0.1+12-29)
OpenJDK 64-Bit Server VM (build 21.0.1+12-29, mixed mode, sharing)

c:\github\opentelemetry-java-examples\autoconfigure>gradle -version


Gradle 8.5

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

No branches or pull requests

1 participant