class Graphql::Dashboard::DetailedTraces::TracesController
Constants
- INSTALLABLE_COMPONENT_HEADER_HTML
- INSTALLABLE_COMPONENT_MESSAGE_HTML
Public Instance Methods
Source
# File lib/graphql/dashboard/detailed_traces.rb, line 27 def delete_all schema_class.detailed_trace.delete_all_traces flash[:success] = "Deleted all traces." head :no_content end
Source
# File lib/graphql/dashboard/detailed_traces.rb, line 21 def destroy schema_class.detailed_trace.delete_trace(params[:id]) flash[:success] = "Trace deleted." head :no_content end
Source
# File lib/graphql/dashboard/detailed_traces.rb, line 10 def index @last = params[:last]&.to_i || 50 @before = params[:before]&.to_i @traces = schema_class.detailed_trace.traces(last: @last, before: @before) end
Source
# File lib/graphql/dashboard/detailed_traces.rb, line 16 def show trace = schema_class.detailed_trace.find_trace(params[:id].to_i) send_data(trace.trace_data) end