Skip to content

Commit

Permalink
remove confusing c.tracing.enabled setting from README
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Nov 8, 2023
1 parent a18acfe commit c60e824
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ To activate `RSpec` integration, add this to the `spec_helper.rb` file:
require 'rspec'
require 'datadog/ci'

Datadog.configure do |c|
# Only activates test instrumentation on CI
c.tracing.enabled = (ENV["DD_ENV"] == "ci")

# Configures the tracer to ensure results delivery
c.ci.enabled = true

# The name of the service or library under test
c.service = 'my-ruby-app'

# Enables the RSpec instrumentation
c.ci.instrument :rspec, **options
# Only activates test instrumentation on CI
if ENV["DD_ENV"] == "ci"
Datadog.configure do |c|
# Configures the tracer to ensure results delivery
c.ci.enabled = true

# The name of the service or library under test
c.service = 'my-ruby-app'

# Enables the RSpec instrumentation
c.ci.instrument :rspec, **options
end
end
```

Expand All @@ -63,18 +63,18 @@ To activate your integration, use the `Datadog.configure` method:
require 'minitest'
require 'datadog/ci'

# Only activates test instrumentation on CI
if ENV["DD_ENV"] == "ci"
# Configure default Minitest integration
Datadog.configure do |c|
# Only activates test instrumentation on CI
c.tracing.enabled = (ENV["DD_ENV"] == "ci")

# Configures the tracer to ensure results delivery
c.ci.enabled = true
Datadog.configure do |c|
# Configures the tracer to ensure results delivery
c.ci.enabled = true

# The name of the service or library under test
c.service = 'my-ruby-app'
# The name of the service or library under test
c.service = 'my-ruby-app'

c.ci.instrument :minitest, **options
c.ci.instrument :minitest, **options
end
end
```

Expand All @@ -94,18 +94,18 @@ Activate `Cucumber` integration with configuration
require 'cucumber'
require 'datadog/ci'

Datadog.configure do |c|
# Only activates test instrumentation on CI
c.tracing.enabled = (ENV["DD_ENV"] == "ci")

# Configures the tracer to ensure results delivery
c.ci.enabled = true
# Only activates test instrumentation on CI
if ENV["DD_ENV"] == "ci"
Datadog.configure do |c|
# Configures the tracer to ensure results delivery
c.ci.enabled = true

# The name of the service or library under test
c.service = 'my-ruby-app'
# The name of the service or library under test
c.service = 'my-ruby-app'

# Enables the Cucumber instrumentation
c.ci.instrument :cucumber, **options
# Enables the Cucumber instrumentation
c.ci.instrument :cucumber, **options
end
end
```

Expand Down

0 comments on commit c60e824

Please sign in to comment.