lib/aspecto/opentelemetry.rb in aspecto-opentelemetry-0.1.7.rc0 vs lib/aspecto/opentelemetry.rb in aspecto-opentelemetry-0.1.7
- old
+ new
@@ -2,17 +2,17 @@
require_relative "opentelemetry/version"
require_relative "opentelemetry/configurator"
require_relative "opentelemetry/propagator/aspecto"
require_relative "opentelemetry/resource/detectors/aspecto"
-require_relative "opentelemetry/resource/detectors/deployment"
require_relative "opentelemetry/config/remote_config"
require "opentelemetry/sdk"
require "opentelemetry/exporter/otlp"
require "opentelemetry/instrumentation/all"
require "opentelemetry-instrumentation-aws_sdk"
+require "opentelemetry-resource-detector-deployment"
module Aspecto
# Aspecto OpenTelemetry Distro
module OpenTelemetry
module_function
@@ -26,10 +26,10 @@
validate_configurator_options(configurator)
::OpenTelemetry::SDK.configure do |c|
c.logger = Logger.new($stdout, level: configurator.log_level)
c.resource = Aspecto::OpenTelemetry::Resource::Detectors::Aspecto.detect
- c.resource = Aspecto::OpenTelemetry::Resource::Detectors::Deployment.detect
+ c.resource = ::OpenTelemetry::Resource::Detector::Deployment.detect
c.resource = configurator.config_override_resource # must be last
c.use_all "OpenTelemetry::Instrumentation::ActionPack" => { enable_recognize_route: true },
"OpenTelemetry::Instrumentation::AwsSdk" => {
suppress_internal_instrumentation: true,
inject_messaging_context: true,