probeXRay

get_traces

Return XRay traces

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",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosaws.xray.probes",
    "func": "get_traces"
  }
}

YAML

name: get-traces
provider:
  func: get_traces
  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
quantityint5NoQuantityRetrieve no more than the given quantity

Signature

def get_traces(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,
               quantity: int = 5,
               configuration: Dict[str, Dict[str, str]] = None,
               secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass