lib/ddtrace.rb in ddtrace-0.33.1 vs lib/ddtrace.rb in ddtrace-0.34.0
- old
+ new
@@ -25,9 +25,13 @@
# Load and extend Contrib by default
require 'ddtrace/contrib/extensions'
extend Contrib::Extensions
+ # Load and extend OpenTelemetry compatibility by default
+ require 'ddtrace/opentelemetry/extensions'
+ extend OpenTelemetry::Extensions
+
# Add shutdown hook:
# Ensures the tracer has an opportunity to flush traces
# and cleanup before terminating the process.
at_exit { Datadog.tracer.shutdown! }
end