Opt-in aggregation registry for in-flight async operations ยท Per-request label surfaced in CngxAsyncRegistry.activeOp...
common/data/async-registry
Category
Features4#
- InjectableCngxAsyncRegistryOpt-in aggregation registry for in-flight async operations
- TokenCNGX_ASYNC_LABELPer-request label surfaced in CngxAsyncRegistry.activeOperations when the request is tracked by cngxAsyncInterceptor
- TokenCNGX_ASYNC_SKIPPer-request opt-out
- InterceptorcngxAsyncInterceptorFunctional HTTP interceptor that surfaces every in-flight HttpRequest in the ambient {@link CngxAsyncRegistry}, so is...
References6#
- InterfaceCngxAsyncOperationRead-only snapshot of one registered async operation
- FunctioninjectAsyncRegistryReturns the ambient {@link CngxAsyncRegistry}, or null when the consumer did not opt in via {@link provideAsyncRegistry}
- FunctionprovideAsyncHttpObservabilitySets up HttpClient with {@link cngxAsyncInterceptor} so every request surfaces in {@link CngxAsyncRegistry}
- FunctionprovideAsyncRegistryProvides {@link CngxAsyncRegistry} in the host environment
- FunctionwithAsyncLabelReturns an HttpContext that labels the request for async observability
- FunctionwithAsyncSkipReturns an HttpContext that opts the request out of async observability