[ 
https://issues.apache.org/jira/browse/SCB-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jun Gan updated SCB-2039:
-------------------------
    Description: 
Currently, In the ProducerInvocationFlow.java, if Invocation creation fails, 
then trace Id will not be create. We need to generate Trace ID even invocation 
creation fails.

 
{code:java}
// code placeholder

public void run() {
  CompletableFuture.completedFuture(null)
      .thenApply(v -> invocationCreator.create())
      .exceptionally(this::sendCreateInvocationException)
      .thenAccept(this::tryRunInvocation);
}
{code}

  was:
Currently, In the ProducerInvocationFlow.java, If Invocation creation fails, 
then trace Id will not be created.

 
{quote} 

public void run() {
 CompletableFuture.completedFuture(null)
 .thenApply(v -> invocationCreator.create())
 .exceptionally(this::sendCreateInvocationException)
 .thenAccept(this::tryRunInvocation);
}
{quote}


> [Tracing] Post Event and Genete Trace ID even Invication creation fails
> -----------------------------------------------------------------------
>
>                 Key: SCB-2039
>                 URL: https://issues.apache.org/jira/browse/SCB-2039
>             Project: Apache ServiceComb
>          Issue Type: Improvement
>          Components: Java-Chassis
>            Reporter: Jun Gan
>            Priority: Major
>
> Currently, In the ProducerInvocationFlow.java, if Invocation creation fails, 
> then trace Id will not be create. We need to generate Trace ID even 
> invocation creation fails.
>  
> {code:java}
> // code placeholder
> public void run() {
>   CompletableFuture.completedFuture(null)
>       .thenApply(v -> invocationCreator.create())
>       .exceptionally(this::sendCreateInvocationException)
>       .thenAccept(this::tryRunInvocation);
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to