Class QuotaEvent
- java.lang.Object
-
- org.apache.beam.fn.harness.logging.QuotaEvent
-
public class QuotaEvent extends java.lang.ObjectAdds MDC key:value pairs for a quota event. The contents of the MDC are added to each log entry.Suggested usage: try (QuotaEventCloseable qec = new QuotaEvent.Builder().withOperation(op).withFullResourceName(name).create()) { LOG.info(...); }
MDC data is thread-local. After calling QuotaEventClosable.close, any overwritten quota_event.* keys will not be restored.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuotaEvent.Builderstatic classQuotaEvent.QuotaEventCloseable
-
Constructor Summary
Constructors Constructor Description QuotaEvent()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsetEnabled(boolean enabled)Set whether this feature is enabled.
-