Class: ActionAgent::TracesController
Overview
Controller for viewing telemetry traces.
Provides:
- List view with filtering and pagination
- Detail view with span timeline
- Metrics overview
- Live updates via Turbo Streams
Instance Method Summary
collapse
allow_unauthenticated_access
Instance Method Details
#index ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
|
# File 'app/controllers/action_agent/traces_controller.rb', line 12
def index
@traces = fetch_traces
@metrics = calculate_metrics
respond_to do |format|
format.html
format.turbo_stream if turbo_stream_available?
end
end
|
#metrics ⇒ Object
28
29
30
31
32
33
34
35
36
37
|
# File 'app/controllers/action_agent/traces_controller.rb', line 28
def metrics
@metrics = calculate_metrics
@agent_stats = agent_statistics
@time_series = time_series_data
respond_to do |format|
format.html
format.turbo_stream if turbo_stream_available?
end
end
|
#show ⇒ Object
24
25
26
|
# File 'app/controllers/action_agent/traces_controller.rb', line 24
def show
@trace = scoped_traces.find(params[:id])
end
|