{% 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') }}
{% for key, value in selection_urls.params.items() %}{% if key not in ['agent_id', 'thread_id'] %}{% endif %}{% endfor %}
{% macro check_value(value, warn=false, bad=false) -%} {{ count(value) }} {%- endmacro %}

{{ health.headline }}

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 %}
Parent-query diagnostics (not selected-root totals)
{{ health.parent_query_metadata|tojson(indent=2) }}
{% endif %}

Latest observed event: {{ health.latest_event_at or 'Unknown' }}. Window truncated: {{ health.truncated }}.

{% if health.coverage != 'complete' %}

Missing records cannot be interpreted as zero activity or successful delivery.

{% endif %}
{{ check_value(health.normalization_errors, bad=true) }}{% if health.duplicates_removed is not none %}{{ check_value(health.duplicates_removed) }}{% else %}{% endif %}{{ check_value(health.missing_identity_events, warn=true) }}{{ check_value(health.orphan_spans, warn=true) }}{{ check_value(health.missing_causal_events, warn=true) }}{{ check_value(health.cyclic_spans, bad=true) }}{{ check_value(health.unknown_duration_spans, warn=true) }}
Evidence checkObserved in this window
Normalization errors
Duplicates removedUnknown in selected scope; see parent-query diagnostics
Events missing canonical identity
Spans with missing parent
Missing causal event references
Spans in cyclic parent chains
Spans with unknown duration
Timing classification{{ health.timing_states|tojson }} — instantaneous events do not require span completion; unknown legacy timing remains unknown.
Write failures / dropped eventsUnknown — inspect recorder.health in the host process

Provider query diagnostics

Registration checks: {{ health.registration|tojson }}.

{% if health.alerts %}

Active telemetry alerts

{% endif %}

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' }}.

Telemetry pipeline (this process only)

{% if health.pipeline.reported %}
{{ health.pipeline|tojson(indent=2) }}
{% else %}

No process-local counters are available in this scope. Unwritten events remain unknown.

{% endif %}
{% for store, query in health.queries.items() %} {% endfor %}
StoreQuery pathRows scannedTime (ms)TruncatedResult
{{ 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 %}

Schema versions

{% 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 %}

Normalization error codes

{% endif %} {% if health.missing_stages %}

Missing declared stages

{% endif %}
{% endblock %}