{% extends "base.html" %} {% block title %}Observability Health - Memorizz{% endblock %} {% block head %}{% endblock %} {% block content %} {% from '_ui.html' import page_header, observability_tabs %} {% from '_fmt.html' import tape, count, ms %} {{ page_header('Observability health', 'Read-only checks of the bounded loaded window. These are not deployment-wide guarantees.', 'Operations', nav=observability_tabs('health', selection_urls)) }} {{ tape(health_tape, 'Trace health for the loaded window') }}
{% macro check_value(value, warn=false, bad=false) -%}Stored-event read: {{ health.read_completeness }} · Instrumentation: {{ health.instrumentation_coverage }} · Outcome evidence: {{ health.outcome_verification }}.
{{ count(health.normalized_events) }} normalized events · {{ count(health.bundle_count) }} bundles · {{ count(health.source_rows) }} source rows
Stores: {{ health.store_selection|join(', ') }} · Counts: {{ health.source_counts|tojson }} · Count scope: {{ health.count_scope }}.
{% if health.parent_query_metadata %}{{ health.parent_query_metadata|tojson(indent=2) }}Latest observed event: {{ health.latest_event_at or 'Unknown' }}. Window truncated: {{ health.truncated }}.
{% if health.coverage != 'complete' %}{% endif %}| Evidence check | Observed in this window |
|---|---|
| Normalization errors | {{ check_value(health.normalization_errors, bad=true) }}|
| Duplicates removed | {% if health.duplicates_removed is not none %}{{ check_value(health.duplicates_removed) }}{% else %}Unknown in selected scope; see parent-query diagnostics | {% endif %}
| Events missing canonical identity | {{ check_value(health.missing_identity_events, warn=true) }}|
| Spans with missing parent | {{ check_value(health.orphan_spans, warn=true) }}|
| Missing causal event references | {{ check_value(health.missing_causal_events, warn=true) }}|
| Spans in cyclic parent chains | {{ check_value(health.cyclic_spans, bad=true) }}|
| Spans with unknown duration | {{ check_value(health.unknown_duration_spans, warn=true) }}|
| Timing classification | {{ health.timing_states|tojson }} — instantaneous events do not require span completion; unknown legacy timing remains unknown. |
| Write failures / dropped events | Unknown — inspect recorder.health in the host process |
Registration checks: {{ health.registration|tojson }}.
{% if health.alerts %}Native span index: {{ 'ready' if health.index.ready else 'not provisioned' }}. Schema {{ health.index.schema_version or 'unknown' }}.
Instrumentation versions: {{ health.instrumentation_versions|join(', ') or 'Not reported' }}.
{{ health.pipeline|tojson(indent=2) }}{% else %}No process-local counters are available in this scope. Unwritten events remain unknown.
{% endif %}| Store | Query path | Rows scanned | Time (ms) | Truncated | Result |
|---|---|---|---|---|---|
| {{ store }} | {{ 'Native' if query.provider_native else 'Compatibility' }} | {{ count(query.scanned_count) if query.scanned_count is not none else 'Unknown' }} | {{ '{:,.1f}'.format(query.query_duration_ms) if query.query_duration_ms is not none else 'Unknown' }} | {{ query.truncated }} | {% if store in health.failed_queries %}Failed{% else %}Completed{% endif %} |
{% for version, count_value in health.schema_counts.items() %}v{{ version }}: {{ count(count_value) }}{% if not loop.last %} · {% endif %}{% else %}No event schemas observed{% endfor %}
{% if health.error_codes %}