image_instrumentation library
Image-load instrumentation APIs for official integrations and advanced custom adapters.
App developers should normally import
package:vunet_flutter_plugin/flutter_sdk.dart and use VuNetworkImage /
VuImage. This library is the stable surface used by packages such as
vunet_flutter_plugin_cached_network_image.
Classes
- ImageConstants
-
Constants for Flutter RUM
image.loadspans (Android Glide/Coil parity). - ImageSpanRecorder
-
Records an Android-parity
image.loadspan for a single image resolution. - InstrumentationScopes
- OpenTelemetry instrumentation scope names for Flutter RUM tracers.
Constants
- imageLoadContextZoneKey → const Symbol
-
Zone key carrying the active
image.loadparent Context.
Functions
-
attachImageCacheHitListener(
ImageStreamCompleter completer, ImageSpanRecorder recorder) → void -
Resolves an
image.loadrecorder against a completer this provider did not create (a Flutter ImageCache memory hit). -
currentImageLoadContext(
) → Context? -
The
image.loadparent Context for the current zone, or null when no instrumented image load is in scope. -
isDecodedImageCacheHit(
ImageCacheStatus status) → bool -
Whether
statusis a decoded Flutter ImageCache hit (image.source=memory). -
runWithImageLoadContext<
R> (Context context, R body(), {Map< Object?, Object?> zoneValues = const {}}) → R -
Runs
bodywithcontextas the ambientimage.loadparent, readable by nested instrumentation via currentImageLoadContext. -
sanitizeImageUrl(
String url) → String - Sanitizes an image URL for RUM attributes (BFSI-safe).