Rails OpenTelemetry error: Unable to export spans #241
-
Share details about your runtime Operating system details: Linux, Ubuntu 20.04 LTS Share a simplified reproduction if possible Gemfile contents gem 'opentelemetry-sdk'
gem 'opentelemetry-exporter-otlp'
gem 'opentelemetry-instrumentation-rails', '~> 0.24.0'
gem 'opentelemetry-instrumentation-mysql2', '~> 0.21.1'
gem 'opentelemetry-instrumentation-sidekiq', '~> 0.22.0'
end config/environment.rb contents require 'opentelemetry/sdk'
require_relative "application"
require_relative "application"
otel_exporter = OpenTelemetry::Exporter::OTLP::Exporter.new
processor = OpenTelemetry::SDK::Trace::Export::SimpleSpanProcessor.new(otel_exporter)
OpenTelemetry::SDK.configure do |c|
c.add_span_processor(processor)
c.use 'OpenTelemetry::Instrumentation::Rails'
c.use 'OpenTelemetry::Instrumentation::Mysql2'
c.use 'OpenTelemetry::Instrumentation::Sidekiq'
end
Error while starting the app.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@RahulMahale This is not an issue that I think we can qualify as a bug since the exporter is reporting that it is unable to export spans and looks like you are looking for help debugging your collector integration, therefore I am going to transfer this to a discussion. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
@arielvalentin thanks for checking. There was a typo in the OTEL exporter URL, Just pre-fixed the |
Beta Was this translation helpful? Give feedback.
@arielvalentin thanks for checking.
There was a typo in the OTEL exporter URL, Just pre-fixed the
http
before the Kubernetes service name and it worked.