Module: Mergify::RSpec::Resources::RSpec

Defined in:
lib/mergify/rspec/resources/rspec.rb

Overview

Detects OpenTelemetry Resource attributes for RSpec.

Class Method Summary collapse

Class Method Details

.detectObject



13
14
15
16
17
18
# File 'lib/mergify/rspec/resources/rspec.rb', line 13

def detect
  OpenTelemetry::SDK::Resources::Resource.create(
    'test.framework' => 'rspec',
    'test.framework.version' => ::RSpec::Core::Version::STRING
  )
end