/** * @see GridRegistry#addNewSessionRequest(RequestHandler) */ public void addNewSessionRequest(RequestHandler handler) { try { lock.lock(); Map<String, Object> requestedCapabilities = handler.getRequest().getDesiredCapabilities(); proxies.verifyAbilityToHandleDesiredCapabilities(requestedCapabilities); requestedCapabilities.forEach((k, v) -> MDC.put(k,v.toString())); LOG.info("Adding sessionRequest for " + requestedCapabilities.toString()); newSessionQueue.add(handler); seleniumTestSessionsWaiting.inc(); fireMatcherStateChanged(); } finally { MDC.clear(); lock.unlock(); } }
/** * Increment the gauge with no labels by 1. */ public void inc() { inc(1); } /**
@Benchmark @BenchmarkMode({Mode.AverageTime}) @OutputTimeUnit(TimeUnit.NANOSECONDS) public void prometheusSimpleGaugeNoLabelsIncBenchmark() { prometheusSimpleGaugeNoLabels.inc(); }
/** * Increment the gauge with no labels by 1. */ public void inc() { inc(1); } /**
@Override public void channelRegistered(ChannelHandlerContext ctx) throws Exception { super.channelRegistered(ctx); activeConnections.inc(); if (activeConnections.get() > service.getConfiguration().getMaxConcurrentInboundConnections()) { ctx.close(); rejectedConnections.inc(); return; } }
audioManager.openAudioConnection(voiceChannel); if (inc) { audioStreams.inc();
Metrics.guilds.inc(); Metrics.geoTracker.labels(event.getGuild().getRegion().getName()).inc();