Skip to content

Commit

Permalink
condition initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Jan 13, 2025
1 parent d20849b commit 4b0a7af
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 5 additions & 3 deletions integration/apps/rails-five/config/initializers/datadog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
end
end

c.remote.enabled = true
c.dynamic_instrumentation.enabled = true
c.dynamic_instrumentation.internal.development = true
if c.respond_to?(:dynamic_instrumentation)
c.remote.enabled = true
c.dynamic_instrumentation.enabled = true
c.dynamic_instrumentation.internal.development = true
end
end
8 changes: 5 additions & 3 deletions integration/apps/rails-seven/config/initializers/datadog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
c.profiling.exporter.transport = Datadog::DemoEnv.profiler_file_transport
end

c.remote.enabled = true
c.dynamic_instrumentation.enabled = true
c.dynamic_instrumentation.internal.development = true
if c.respond_to?(:dynamic_instrumentation)
c.remote.enabled = true
c.dynamic_instrumentation.enabled = true
c.dynamic_instrumentation.internal.development = true
end
end
8 changes: 5 additions & 3 deletions integration/apps/rails-six/config/initializers/datadog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
end
end

c.remote.enabled = true
c.dynamic_instrumentation.enabled = true
c.dynamic_instrumentation.internal.development = true
if c.respond_to?(:dynamic_instrumentation)
c.remote.enabled = true
c.dynamic_instrumentation.enabled = true
c.dynamic_instrumentation.internal.development = true
end
end

0 comments on commit 4b0a7af

Please sign in to comment.