probeXRay

get_traces_summaries

Return XRay trace summaries

Activity as code

Below are the details and signature of the activity Python module.

Typeprobe
Modulechaosaws.s3.probes
Nameget_traces
Returnmapping

Usage

JSON

{
  "name": "get-traces-summaries",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosaws.xray.probes",
    "func": "get_traces_summaries"
  }
}

YAML

name: get-traces-summaries
provider:
  func: get_traces_summaries
  module: chaosaws.xray.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
start_timestring2 minutesYesPeriod StartGet traces issued within a given window. For instance: 3 minutes. Supported time units are seconds, minutes, hours and days
end_timestringnowNoPeriod EndGet traces issued within a given window
filter_expressionstringgroupname = “Default” ”NoFilter ExpressionFilter Expression to select traces

Signature

def get_traces_summaries(
        start_time: Union[str, float] = '3 minutes',
        end_time: Union[str, float] = 'now',
        time_range_type: str = 'TraceId',
        filter_expression: str = 'groupname = "Default"',
        sampling: bool = False,
        sampling_strategy: Optional[Dict[str, float]] = None,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass