withAttributes

inline fun <T> withAttributes(attributes: Map<String, String>, block: () -> T): T

Execute a block with additional context attributes. Attributes are merged with existing context and removed after block completes.