Tabnine Logo
Span.logEvent
Code IndexAdd Tabnine to your IDE (free)

How to use
logEvent
method
in
org.springframework.cloud.sleuth.Span

Best Java code snippets using org.springframework.cloud.sleuth.Span.logEvent (Showing top 6 results out of 315)

origin: aillamsun/genesis

  String getTimeAsString() {

    Span dateServiceSpan = this.tracer.createSpan("dateService");

    try {
      LOGGER.info("Returning time as String");
      dateServiceSpan.logEvent("This is my date service event");
      return LocalDateTime.now().toString();
    } finally {
      this.tracer.close(dateServiceSpan);
    }
  }
}
origin: lexburner/sleuth-starter

if (exception) {
  span.logEvent("motan request fail." + (ex == null ? "unknown exception" : ex.getMessage()));
} else {
    span.logEvent(Span.SERVER_SEND);
    span.logEvent(Span.CLIENT_RECV);
origin: lexburner/sleuth-starter

/**
 * process trace in server end
 * 
 * @param caller
 * @param request
 * @return
 */
protected Response processProviderTrace(Tracer tracer, Caller<?> caller, Request request) {
  Span span = extractTraceInfo(request, tracer);
  span.tag("requestId", String.valueOf(request.getRequestId()));
  span.logEvent(Span.SERVER_RECV);
  SleuthTracingContext.setActiveSpan(span);
  return process(tracer,caller, request, span);
}
origin: lexburner/sleuth-starter

span.logEvent(Span.CLIENT_SEND);
if(span.getSavedSpan()!=null && span.getSavedSpan().tags()!=null){
  for (Entry<String, String> stringStringEntry : span.getSavedSpan().tags().entrySet()) {
origin: wu191287278/spring-boot-starter-dubbo

span = tracer.createSpan(spanName, parent);
if (parent.isRemote()) {
  parent.logEvent(Span.SERVER_RECV);
  span = tracer.createSpan(spanName);
span.logEvent(Span.SERVER_RECV);
  Span parent = span.getSavedSpan();
  if (parent.isRemote()) {
    parent.logEvent(Span.SERVER_SEND);
    parent.stop();
    spanReporter.report(parent);
  span.logEvent(Span.SERVER_SEND);
origin: wu191287278/spring-boot-starter-dubbo

public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
  URL url = invoker.getUrl();
  String spanName = url.getServiceInterface() + "." + invocation.getMethodName();
  Span newSpan = tracer.createSpan(spanName);
  try {
    dubboSpanInjector.inject(newSpan, RpcContext.getContext());
    newSpan.logEvent(Span.CLIENT_SEND);
    return invoker.invoke(invocation);
  } catch (RpcException e) {
    newSpan.tag("error", e.getMessage());
    throw e;
  } finally {
    if (tracer.isTracing()) {
      tracer.getCurrentSpan().logEvent(Span.CLIENT_RECV);
      tracer.close(tracer.getCurrentSpan());
    }
  }
}
org.springframework.cloud.sleuthSpanlogEvent

Popular methods of Span

  • getSpanId
  • getParents
  • getName
  • getTraceId
  • isExportable
  • builder
  • getProcessId
  • getSavedSpan
  • tag
  • traceIdString
  • getBegin
  • hexToId
  • getBegin,
  • hexToId,
  • idToHex,
  • isRemote,
  • tags,
  • getTraceIdHigh,
  • isRunning,
  • logs,
  • stop

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now