...

/

Compose Decorators Dynamically Based on Configuration

Compose Decorators Dynamically Based on Configuration

Build a decorator composition system that applies different decorators at runtime, depending on configuration flags.

We'll cover the following...

Problem statement

Your platform operates in multiple environments: developmentstaging, and production. Each environment needs a different level of instrumentation for a critical async service:

  • development: Log inputs and outputs

  • staging ...