We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99f26b0 commit ec8dc87Copy full SHA for ec8dc87
app/jobs/application_job.rb
@@ -9,10 +9,9 @@ class ApplicationJob < ActiveJob::Base
9
rescue_from(Exception) do |error|
10
span = OpenTelemetry::Trace.current_span
11
span.status = OpenTelemetry::Trace::Status.error(error.message)
12
- span.record_exception(
13
- error,
14
- attributes: {"job.class" => self.class.name, "job.id" => job_id}
15
- )
+ span.set_attribute("job.class", self.class.name)
+ span.set_attribute("job.id", job_id)
+ span.record_exception(error)
16
17
Rails.logger.error(
18
"Job failed",
0 commit comments