Sha256: 383552728dede1170bdcfd6ef7364edf4810ec0b171da048b7c80d84641302f9

Contents?: true

Size: 432 Bytes

Versions: 5

Compression:

Stored size: 432 Bytes

Contents

# typed: ignore

::Hanami.plugin do
  Datadog.configure do |c|
    c.tracing.instrument :rack
  end

  middleware.use Datadog::Tracing::Contrib::Rack::TraceMiddleware
end

::Hanami::Application.singleton_class.prepend(
  Module.new do
    def inherited(base)
      super

      base.configure do
        controller.prepare do
          use Datadog::Tracing::Contrib::Hanami::ActionTracer, self
        end
      end
    end
  end
)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-1.9.0 lib/datadog/tracing/contrib/hanami/plugin.rb
ddtrace-1.8.0 lib/datadog/tracing/contrib/hanami/plugin.rb
ddtrace-1.7.0 lib/datadog/tracing/contrib/hanami/plugin.rb
ddtrace-1.6.1 lib/datadog/tracing/contrib/hanami/plugin.rb
ddtrace-1.6.0 lib/datadog/tracing/contrib/hanami/plugin.rb