public TunnelMetrics(MetricsRegistry registry, MetricTags tags) { _tags = tags; var metrics = registry.Merge(_tags); Local = new LocalDataChannelMetrics(metrics); Remote = new RemoteDataChannelMetrics(metrics); LocalEstablishedConnections = metrics.MakeMeter(LocalEstablishedConnectionsOptions); RemoteEstablishedTunnels = metrics.MakeMeter(RemoteEstablishedTunnelsOptions); }
public LocalDataChannelMetrics Merge(MetricTags tags) { return(new LocalDataChannelMetrics(_registry.Merge(tags))); }