grpc/test/core/event_engine
AJ Heller c9fdef1317 [logging] Centralize configuration for trace flags (#36576)
All TraceFlags are now configured in `src/core/lib/debug/trace_flags.yaml`. The format is:

```
my_flag:
  default: false                   # the default value; default=false
  description: Some Description
  debug_only: false                # debug_only flags only work in debug builds; default=false
  internal: false                  # internal flags will not show up in documentation; default=false
```

To regenerate the trace flag source code, run `tools/codegen/core/gen_trace_flags.py` (requires mako). This script is also run when sanity checking.

This PR also adds two new features:

### Glob-based flag configuration

Trace flag configuration now supports `?` (single wildcard character) and `*` (one or more wildcard characters).  For example, using `GRPC_TRACE='event_engine*'` will enable all flags that match that glob. It expands to:

* event_engine
* event_engine_client_channel_resolver
* event_engine_dns
* event_engine_endpoint
* event_engine_endpoint_data
* event_engine_poller

### A cleaner trace-logging macro in abseil logging format

If your goal is only to add log statements when the `fault_injection_filter` trace flag is enabled, you can use the macro:

```
GRPC_TRACE_LOG(fault_injection, INFO) << "Filtered:" << 42;
```

When the trace flag is enabled, the the log will show something like this:
```
I0000 00:00:1715733657.430042      16 file.cc:174] Filtered:42
```

----

Note: just like with the gpr_log to abseil logging conversion, the pre-existing trace logging usages can be replaced with the new tracing macro across multiple PRs.

Closes #36576

PiperOrigin-RevId: 641295215
2024-06-07 10:47:38 -07:00
..
cf [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
fuzzing_event_engine [logging] Centralize configuration for trace flags (#36576) 2024-06-07 10:47:38 -07:00
posix [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36701) 2024-05-24 03:01:38 -07:00
test_suite [ObjC] default GRPC_IOS_EVENT_ENGINE_CLIENT to 1 (#36785) 2024-06-05 18:26:38 -07:00
util [clang-format] Remove requirement that port_platform.h is at the top (#36281) 2024-04-09 08:58:34 -07:00
windows [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36701) 2024-05-24 03:01:38 -07:00
work_queue [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
BUILD [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - BUILD (#36603) 2024-05-14 03:23:35 -07:00
common_closures_test.cc [clang-format] Remove requirement that port_platform.h is at the top (#36281) 2024-04-09 08:58:34 -07:00
default_engine_methods_test.cc [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
endpoint_config_test.cc [clang-format] Remove requirement that port_platform.h is at the top (#36281) 2024-04-09 08:58:34 -07:00
event_engine_test_utils.cc [EventEngine] Fix race between connection and its deadline timer on Windows (#36709) 2024-06-06 13:25:20 -07:00
event_engine_test_utils.h [EventEngine] Fix race between connection and its deadline timer on Windows (#36709) 2024-06-06 13:25:20 -07:00
factory_test.cc [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
forkable_test.cc [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36701) 2024-05-24 03:01:38 -07:00
handle_tests.cc [clang-format] Remove requirement that port_platform.h is at the top (#36281) 2024-04-09 08:58:34 -07:00
mock_event_engine.h [Deps] Update to Clang-16 (#34492) 2023-10-11 16:26:32 -07:00
query_extensions_test.cc [clang-format] Remove requirement that port_platform.h is at the top (#36281) 2024-04-09 08:58:34 -07:00
slice_buffer_test.cc grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging GPR_ASSERT (#36326) 2024-04-11 21:28:21 -07:00
smoke_test.cc [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
tcp_socket_utils_test.cc grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging GPR_ASSERT (#36326) 2024-04-11 21:28:21 -07:00
test_init.cc [clang-format] Remove requirement that port_platform.h is at the top (#36281) 2024-04-09 08:58:34 -07:00
test_init.h [clang-format] Remove requirement that port_platform.h is at the top (#36281) 2024-04-09 08:58:34 -07:00
thread_pool_test.cc [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00