Module: Watchforge::API::Traces

Included in:
Client
Defined in:
lib/watchforge/api/traces.rb

Instance Method Summary collapse

Instance Method Details

#get_trace(trace_id) ⇒ Object



10
11
12
# File 'lib/watchforge/api/traces.rb', line 10

def get_trace(trace_id)
  get("traces/#{trace_id}/")
end

#list_trace_spans(trace_id) ⇒ Object



14
15
16
# File 'lib/watchforge/api/traces.rb', line 14

def list_trace_spans(trace_id)
  get("traces/#{trace_id}/spans/")
end

#list_traces(project_id, params = {}) ⇒ Object



6
7
8
# File 'lib/watchforge/api/traces.rb', line 6

def list_traces(project_id, params = {})
  get("traces/", params.merge(project_id: project_id))
end

#trace_performance(project_id, params = {}) ⇒ Object



18
19
20
# File 'lib/watchforge/api/traces.rb', line 18

def trace_performance(project_id, params = {})
  get("traces/performance/", params.merge(project_id: project_id))
end