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.load spans (Android Glide/Coil parity).
ImageSpanRecorder
Records an Android-parity image.load span for a single image resolution.
InstrumentationScopes
OpenTelemetry instrumentation scope names for Flutter RUM tracers.

Constants

imageLoadContextZoneKey → const Symbol
Zone key carrying the active image.load parent Context.

Functions

attachImageCacheHitListener(ImageStreamCompleter completer, ImageSpanRecorder recorder) → void
Resolves an image.load recorder against a completer this provider did not create (a Flutter ImageCache memory hit).
currentImageLoadContext() → Context?
The image.load parent Context for the current zone, or null when no instrumented image load is in scope.
isDecodedImageCacheHit(ImageCacheStatus status) → bool
Whether status is a decoded Flutter ImageCache hit (image.source=memory).
runWithImageLoadContext<R>(Context context, R body(), {Map<Object?, Object?> zoneValues = const {}}) → R
Runs body with context as the ambient image.load parent, readable by nested instrumentation via currentImageLoadContext.
sanitizeImageUrl(String url) → String
Sanitizes an image URL for RUM attributes (BFSI-safe).