github.com/GuanceCloud/cliutils@v1.1.21/pipeline/ptinput/funcs/md/drop.en.md (about)

     1  ### `drop()` {#fn-drop}
     2  
     3  Function prototype: `fn drop()`
     4  
     5  Function description: Discard the entire log without uploading
     6  
     7  Example:
     8  
     9  ```python
    10  # in << {"str_a": "2", "str_b": "3"}
    11  json(_, str_a)
    12  if str_a == "2"{
    13    drop()
    14    exit()
    15  }
    16  json(_, str_b)
    17  
    18  # Extracted data(drop: true, cost: 30.02µs):
    19  # {
    20  #   "message": "{\"str_a\": \"2\", \"str_b\": \"3\"}",
    21  #   "str_a": "2"
    22  # }
    23  ```