Skip to content

Commit

Permalink
clean up Datadog stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
amancevice committed Feb 3, 2025
1 parent 23844a0 commit 4084688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion spec/datadog_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'yake/datadog'

RSpec.describe Yake::Datadog::DSL do
let(:event) { { fizz: 'buzz' } }
let(:runtime_class) { Class.new { extend Yake::Datadog::DSL } }
Expand All @@ -6,7 +8,6 @@
let(:context) { context_class.new('<requestId>', '<functionName>', '<invokedFunctionArn>', 128) }

before do
runtime_class.logging :off
require 'aws-sdk-core'
Datadog::Lambda.configure_apm { |c| c.tracing.instrument :aws }
end
Expand Down
4 changes: 0 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@
require 'base64'

require 'yake/api'
require 'yake/datadog'
require 'yake/support'

ENV['DD_LOG_LEVEL'] = 'WARN'
Datadog.configure { |c| c.tracing.enabled = true }

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = '.rspec_status'
Expand Down

0 comments on commit 4084688

Please sign in to comment.