Class ClientMetricsBinder
java.lang.Object
com.vaadin.observability.micrometer.client.ClientMetricsBinder
Validates and records samples emitted by the in-browser collector.
Applies the metric-name allowlist, the per-meter tag-key set with its bounded
values, route-template resolution against the current session's
RouteConfiguration, and cardinality capping via
RouteTagResolver.
-
Constructor Summary
ConstructorsConstructorDescriptionClientMetricsBinder(io.micrometer.core.instrument.MeterRegistry registry, ObservabilitySettings settings) ClientMetricsBinder(io.micrometer.core.instrument.MeterRegistry registry, ObservabilitySettings settings, @Nullable ClientErrorCollector clientErrors) -
Method Summary
Modifier and TypeMethodDescriptionvoidingest(List<ClientSample> samples) voidrecordDropped(int count) voidrecordThrottled(int count)
-
Constructor Details
-
ClientMetricsBinder
public ClientMetricsBinder(io.micrometer.core.instrument.MeterRegistry registry, ObservabilitySettings settings) -
ClientMetricsBinder
public ClientMetricsBinder(io.micrometer.core.instrument.MeterRegistry registry, ObservabilitySettings settings, @Nullable ClientErrorCollector clientErrors) - Parameters:
registry- the registry client samples are recorded intosettings- instrumentation settingsclientErrors- retains the detail of a reported browser error as an insight, ornullto record only the count
-
-
Method Details
-
ingest
-
recordDropped
public void recordDropped(int count) -
recordThrottled
public void recordThrottled(int count)
-