Module: Gitlab::ErrorTracking::StackTraceHighlightDecorator

Extended by:
StackTraceHighlightDecorator
Included in:
StackTraceHighlightDecorator
Defined in:
lib/gitlab/error_tracking/stack_trace_highlight_decorator.rb

Instance Method Summary collapse

Instance Method Details

#decorate(error_event) ⇒ Object


8
9
10
11
12
13
14
# File 'lib/gitlab/error_tracking/stack_trace_highlight_decorator.rb', line 8

def decorate(error_event)
  ::Gitlab::ErrorTracking::ErrorEvent.new(
    issue_id: error_event.issue_id,
    date_received: error_event.date_received,
    stack_trace_entries: highlight_stack_trace(error_event.stack_trace_entries)
  )
end