Skip to content

Commit

Permalink
Merge pull request #4094 from DataDog/sarahchen6/adjust-otel-spec
Browse files Browse the repository at this point in the history
Adjust OTel Spec for new Ruby 3.4 syntax
  • Loading branch information
sarahchen6 authored Nov 13, 2024
2 parents 2b8486e + 2bd29cd commit 7c519ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/datadog/opentelemetry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -630,11 +630,11 @@
expect(span.events[0].attributes['exception.message']).to eq('Error')
expect(span.events[0].attributes['exception.type']).to eq('StandardError')
expect(span.events[0].attributes['exception.stacktrace']).to include(
":in `full_message': Error (StandardError)"
"full_message': Error (StandardError)"
)
expect(span).to_not have_error
expect(span).to have_error_message('Error')
expect(span).to have_error_stack(include(":in `full_message': Error (StandardError)"))
expect(span).to have_error_stack(include("full_message': Error (StandardError)"))
expect(span).to have_error_type('StandardError')
end
end
Expand All @@ -649,7 +649,7 @@
expect(span.events[0].attributes).to eq({})
expect(span).to_not have_error
expect(span).to have_error_message('Error')
expect(span).to have_error_stack(include(":in `full_message': Error (StandardError)"))
expect(span).to have_error_stack(include("full_message': Error (StandardError)"))
expect(span).to have_error_type('StandardError')
end
end
Expand Down

0 comments on commit 7c519ab

Please sign in to comment.