-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused TracingPlugin interface (#80799)
- Loading branch information
1 parent
69caefd
commit 3a304f2
Showing
9 changed files
with
72 additions
and
47 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
28 changes: 0 additions & 28 deletions
28
server/src/main/java/org/elasticsearch/plugins/TracingPlugin.java
This file was deleted.
Oops, something went wrong.
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
32 changes: 32 additions & 0 deletions
32
server/src/main/java/org/elasticsearch/tracing/Traceable.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,32 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
package org.elasticsearch.tracing; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* Something which maps onto a <i>span</i> in a distributed trace. | ||
*/ | ||
public interface Traceable { | ||
|
||
/** | ||
* @return a key which uniquely identifies the span. | ||
*/ | ||
String getSpanId(); | ||
|
||
/** | ||
* @return the name of the span as seen by the external tracing system (e.g. the action name for a task) | ||
*/ | ||
String getSpanName(); | ||
|
||
/** | ||
* @return extra metadata about the span. | ||
*/ | ||
Map<String, Object> getAttributes(); | ||
} |
25 changes: 25 additions & 0 deletions
25
server/src/main/java/org/elasticsearch/tracing/Tracer.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,25 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
package org.elasticsearch.tracing; | ||
|
||
/** | ||
* Represents a distributed tracing system that keeps track of the start and end of various activities in the cluster. | ||
*/ | ||
public interface Tracer { | ||
|
||
/** | ||
* Called when the {@link Traceable} activity starts. | ||
*/ | ||
void onTraceStarted(Traceable traceable); | ||
|
||
/** | ||
* Called when the {@link Traceable} activity ends. | ||
*/ | ||
void onTraceStopped(Traceable traceable); | ||
} |
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