Codota Logo
ChannelPipelineFinalizerHandler.logErrorWithTracing
Code IndexAdd Codota to your IDE (free)

How to use
logErrorWithTracing
method
in
com.nike.riposte.server.handler.ChannelPipelineFinalizerHandler

Best Java code snippets using com.nike.riposte.server.handler.ChannelPipelineFinalizerHandler.logErrorWithTracing (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: Nike-Inc/riposte

protected void logErrorWithTracing(String msg, Throwable ex, HttpProcessingState state) {
  Deque<Span> distributedTraceStackToLink = null;
  Map<String, String> mdcContextMapToLink = null;
  if (state != null) {
    distributedTraceStackToLink = state.getDistributedTraceStack();
    mdcContextMapToLink = state.getLoggerMdcContextMap();
  }
  logErrorWithTracing(msg, ex, distributedTraceStackToLink, mdcContextMapToLink);
}
origin: com.nike.riposte/riposte-core

protected void logErrorWithTracing(String msg, Throwable ex, HttpProcessingState state) {
  Deque<Span> distributedTraceStackToLink = null;
  Map<String, String> mdcContextMapToLink = null;
  if (state != null) {
    distributedTraceStackToLink = state.getDistributedTraceStack();
    mdcContextMapToLink = state.getLoggerMdcContextMap();
  }
  logErrorWithTracing(msg, ex, distributedTraceStackToLink, mdcContextMapToLink);
}
origin: Nike-Inc/riposte

@Test
public void logErrorWithTracing_using_HttpProcessingState_gracefully_handles_when_state_is_null() {
  // given
  String msg = UUID.randomUUID().toString();
  Throwable exMock = mock(Throwable.class);
  ChannelPipelineFinalizerHandler handlerSpy = spy(handler);
  // when
  handlerSpy.logErrorWithTracing(msg, exMock, (HttpProcessingState)null);
  // then
  verify(handlerSpy).logErrorWithTracing(msg, exMock, null, null);
}
origin: Nike-Inc/riposte

@Test
public void logErrorWithTracing_using_ChannelHandlerContext_gracefully_handles_when_ctx_is_null() {
  // given
  String msg = UUID.randomUUID().toString();
  Throwable exMock = mock(Throwable.class);
  ChannelPipelineFinalizerHandler handlerSpy = spy(handler);
  // when
  handlerSpy.logErrorWithTracing(msg, exMock, (ChannelHandlerContext)null);
  // then
  verify(handlerSpy).logErrorWithTracing(msg, exMock, null, null);
}
origin: Nike-Inc/riposte

@SuppressWarnings("SameParameterValue")
protected void logErrorWithTracing(String msg, Throwable ex, ChannelHandlerContext ctx) {
  Pair<Deque<Span>, Map<String, String>> tracingState =
    AsyncNettyHelper.extractTracingAndMdcInfoFromChannelHandlerContext(ctx);
  Deque<Span> distributedTraceStackToLink = null;
  Map<String, String> mdcContextMapToLink = null;
  if (tracingState != null) {
    distributedTraceStackToLink = tracingState.getLeft();
    mdcContextMapToLink = tracingState.getRight();
  }
  logErrorWithTracing(msg, ex, distributedTraceStackToLink, mdcContextMapToLink);
}
origin: com.nike.riposte/riposte-core

@SuppressWarnings("SameParameterValue")
protected void logErrorWithTracing(String msg, Throwable ex, ChannelHandlerContext ctx) {
  Pair<Deque<Span>, Map<String, String>> tracingState =
    AsyncNettyHelper.extractTracingAndMdcInfoFromChannelHandlerContext(ctx);
  Deque<Span> distributedTraceStackToLink = null;
  Map<String, String> mdcContextMapToLink = null;
  if (tracingState != null) {
    distributedTraceStackToLink = tracingState.getLeft();
    mdcContextMapToLink = tracingState.getRight();
  }
  logErrorWithTracing(msg, ex, distributedTraceStackToLink, mdcContextMapToLink);
}
origin: Nike-Inc/riposte

String errorMsg = "Discovered a request that snuck through without a response being sent. This should not "
         + "be possible and indicates a major problem in the channel pipeline.";
logErrorWithTracing(errorMsg, new Exception("Wrapper exception", cause), state);
logErrorWithTracing(
  "Received an error in ChannelPipelineFinalizerHandler after response sending was started, but "
  + "before it finished. Closing the channel. unexpected_error=" + cause.toString(),
origin: com.nike.riposte/riposte-core

String errorMsg = "Discovered a request that snuck through without a response being sent. This should not "
         + "be possible and indicates a major problem in the channel pipeline.";
logErrorWithTracing(errorMsg, new Exception("Wrapper exception", cause), state);
logErrorWithTracing(
  "Received an error in ChannelPipelineFinalizerHandler after response sending was started, but "
  + "before it finished. Closing the channel. unexpected_error=" + cause.toString(),
origin: com.nike.riposte/riposte-core

logErrorWithTracing(
  "An unexpected error occurred while trying to finalize metrics. "
  + "This exception will be swallowed.", t, state
origin: Nike-Inc/riposte

logErrorWithTracing(
  "An unexpected error occurred while trying to finalize metrics. "
  + "This exception will be swallowed.", t, state
origin: com.nike.riposte/riposte-core

    logErrorWithTracing(
      "An unexpected error occurred while trying to finalize distributed tracing. "
      + "This exception will be swallowed.", t, httpState
  logErrorWithTracing(
    "An unexpected error occurred while trying to finalize access logging. "
    + "This exception will be swallowed.", t, httpState
    logErrorWithTracing(
      "An unexpected error occurred while trying to release request resources. "
      + "This exception will be swallowed.", t, httpState
  logErrorWithTracing(
    "An unexpected error occurred while trying to release ProxyRouter state resources. "
    + "This exception will be swallowed.", t, httpState
logErrorWithTracing(
  "An unexpected error occurred during ChannelPipelineFinalizerHandler.doChannelInactive() - this "
  + "should not happen and indicates a bug that needs to be fixed in Riposte.", t, ctx
origin: Nike-Inc/riposte

    logErrorWithTracing(
      "An unexpected error occurred while trying to finalize distributed tracing. "
      + "This exception will be swallowed.", t, httpState
  logErrorWithTracing(
    "An unexpected error occurred while trying to finalize access logging. "
    + "This exception will be swallowed.", t, httpState
    logErrorWithTracing(
      "An unexpected error occurred while trying to release request resources. "
      + "This exception will be swallowed.", t, httpState
  logErrorWithTracing(
    "An unexpected error occurred while trying to release ProxyRouter state resources. "
    + "This exception will be swallowed.", t, httpState
logErrorWithTracing(
  "An unexpected error occurred during ChannelPipelineFinalizerHandler.doChannelInactive() - this "
  + "should not happen and indicates a bug that needs to be fixed in Riposte.", t, ctx
com.nike.riposte.server.handlerChannelPipelineFinalizerHandlerlogErrorWithTracing

Popular methods of ChannelPipelineFinalizerHandler

  • <init>
  • finalizeChannelPipeline
    This will first check the given state to see if a response was sent to the user. If not then this me
  • getStateAndCreateIfNeeded
    Returns the given context's channel's state. We expect the state to exist, so if it doesn't this met
  • handleMetricsForCompletedRequestIfNotAlreadyDone
  • releaseProxyRouterStateResources
    Tell the ProxyRouterProcessingState that the request streaming is cancelled so that it will trigger
  • argsAreEligibleForLinkingAndUnlinkingDistributedTracingInfo
  • doChannelInactive
    This method is used as the final cleanup safety net for when a channel is closed. It guarantees that
  • doChannelRead
  • doExceptionCaught

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now