Skip to content

Commit

Permalink
add check for logs sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
khushijain21 committed May 17, 2024
1 parent b0b301f commit e6799ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Instrumentation < OpenTelemetry::Instrumentation::Base
end

present do
defined?(::Logger)
defined?(::Logger) && defined?(::OpenTelemetry::SDK::Logs)
end

option :name, default: OpenTelemetry::Instrumentation::Logger::NAME, validate: :string
Expand Down

0 comments on commit e6799ff

Please sign in to comment.