コード例 #1
0
        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);
        }
コード例 #2
0
 public LocalDataChannelMetrics Merge(MetricTags tags)
 {
     return(new LocalDataChannelMetrics(_registry.Merge(tags)));
 }