Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide AbstractSpan interface for the context.
- Loading branch information
Showing
32 changed files
with
204 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...pm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/trace/AbstractSpan.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.skywalking.apm.agent.core.context.trace; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* The <code>AbstractSpan</code> represents the span's skeleton, | ||
* which contains all open methods. | ||
* | ||
* @author wusheng | ||
*/ | ||
public interface AbstractSpan { | ||
AbstractSpan setOperationName(String operationName); | ||
|
||
void setPeerHost(String peerHost); | ||
|
||
void setPort(int port); | ||
|
||
void setPeers(String peers); | ||
|
||
AbstractSpan setTag(String key, String value); | ||
|
||
AbstractSpan setTag(String key, boolean value); | ||
|
||
AbstractSpan setTag(String key, Integer value); | ||
|
||
AbstractSpan log(Map<String, String> fields); | ||
|
||
AbstractSpan log(Throwable t); | ||
|
||
AbstractSpan log(String event); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.