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
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)
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
The text was updated successfully, but these errors were encountered: