diff --git a/metrics_sdk/lib/opentelemetry/sdk/metrics/configuration_patch.rb b/metrics_sdk/lib/opentelemetry/sdk/metrics/configuration_patch.rb index 659c53e084..24c95877cc 100644 --- a/metrics_sdk/lib/opentelemetry/sdk/metrics/configuration_patch.rb +++ b/metrics_sdk/lib/opentelemetry/sdk/metrics/configuration_patch.rb @@ -47,11 +47,13 @@ def wrapped_metric_exporters_from_env begin OpenTelemetry.meter_provider.add_metric_reader(OpenTelemetry::Exporter::OTLP::MetricsExporter.new) rescue NameError - OpenTelemetry.logger.warn 'The otlp exporter cannot be configured - please add opentelemetry-exporter-otlp-metrics to your Gemfile, metrics will not be exported' + OpenTelemetry.logger.warn 'The otlp metrics exporter cannot be configured - please add ' \ + 'opentelemetry-exporter-otlp-metrics to your Gemfile, metrics will not be exported' nil end else - OpenTelemetry.logger.warn "The #{exporter} exporter is unknown and cannot be configured, metrics will not be exported" + OpenTelemetry.logger.warn "The #{exporter} exporter is unknown and cannot be configured, " \ + 'metrics will not be exported' nil end end