Opensearch 2.12 and telemetry-otel plugin

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

Opensearch 2.12
telemetry-otel plugin 2.12

Describe the issue:

Unable to run opensearch 2.12 with telemetry-otel plugin. See following failure:


2024-04-05 12:42:02,151 local_host.py:54 INFO java.lang.NoClassDefFoundError: io/opentelemetry/exporter/logging/LoggingSpanExporter

Configuration:

% ls $opensearch/plugins/telemetry-otel
plugin-descriptor.properties telemetry-otel-2.12.0-sources.jar telemetry-otel-2.12.0.jar.asc telemetry-otel-2.12.0.module.md5 telemetry-otel-2.12.0.pom.sha1
telemetry-otel-2.12.0-javadoc.jar telemetry-otel-2.12.0-sources.jar.asc telemetry-otel-2.12.0.jar.md5 telemetry-otel-2.12.0.module.sha1 telemetry-otel-2.12.0.pom.sha256
telemetry-otel-2.12.0-javadoc.jar.asc telemetry-otel-2.12.0-sources.jar.md5 telemetry-otel-2.12.0.jar.sha1 telemetry-otel-2.12.0.module.sha256 telemetry-otel-2.12.0.pom.sha512
telemetry-otel-2.12.0-javadoc.jar.md5 telemetry-otel-2.12.0-sources.jar.sha1 telemetry-otel-2.12.0.jar.sha256 telemetry-otel-2.12.0.module.sha512
telemetry-otel-2.12.0-javadoc.jar.sha1 telemetry-otel-2.12.0-sources.jar.sha256 telemetry-otel-2.12.0.jar.sha512 telemetry-otel-2.12.0.pom
telemetry-otel-2.12.0-javadoc.jar.sha256 telemetry-otel-2.12.0-sources.jar.sha512 telemetry-otel-2.12.0.module telemetry-otel-2.12.0.pom.asc
telemetry-otel-2.12.0-javadoc.jar.sha512 telemetry-otel-2.12.0.jar telemetry-otel-2.12.0.module.asc telemetry-otel-2.12.0.pom.md5

Relevant Logs or Screenshots:

description=OpenSearch Telemetry Plugin
version=2.12.0
name=telemetry-otel
classname=org.opensearch.telemetry.OTelTelemetryPlugin
java.version=11
opensearch.version=2.12.0
custom.foldername=
extended.plugins=
has.native.controller=false

@umang-glean I am no sure how you are installing the plugin but is not the coming from the distribution. Plugins are distributed as ZIP bundles.

I didn’t find a zip for telemetry-otel unfortunately: Central Repository: org/opensearch/plugin/telemetry-otel/2.12.0

Instead, I copied the folder manually to $opensearch/plugins/telemetry-otel and added a plugin-descriptor.properties file (see previous message).

The issue was missing dependencies in the plugin directory, resolved with manual install.