public static class RunicViewsTelemetry Names of the Views runtime's ActivitySource, Meter and log category.
Remarks
Subscribe with OpenTelemetry, for example tracing.AddSource(RunicViewsTelemetry.ActivitySourceName) and metrics.AddMeter(RunicViewsTelemetry.MeterName). The package README lists the spans, instruments and log event IDs.
Fields
ActivitySourceName
public const string ActivitySourceName = "Runic.Application.Views" The name of the ActivitySource that traces Bridge calls and operations.
LogCategory
public const string LogCategory = "Runic.Application.Views" The category of the Views runtime's log entries.
MeterName
public const string MeterName = "Runic.Application.Views" The name of the Meter that measures Bridge calls and snapshot delivery.
PageLogCategory
public const string PageLogCategory = "Runic.Application.Views.Page" The category of the errors that pages report with installErrorReporting() of @runic-artifex/views (Views protocol 4 feature client-errors/1): event 1150 PageError, 1151 PageErrorsSuppressed and 1152 WindowPageErrorsSuppressed.
Remarks
A separate category, so an application can route, filter or forward page errors, for example to a crash reporter, apart from the runtime's own entries. The reports come from the page and are untrusted: Runic caps their texts, removes control and bidirectional formatting characters and URL queries, starts every stack line with " | ", and logs at most 10 per connection and 30 per window a minute. A page's text still reaches the log: a plain-text sink shows it as part of the entry, and a reader must not take it for the host's own output.