Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
#185 Rename opentracing-examples to opentracing-testbed
Browse files Browse the repository at this point in the history
Signed-off-by: Sergei Malafeev <sergeymalafeev@gmail.com>
  • Loading branch information
malafeev committed Mar 21, 2018
1 parent 2691c70 commit 81d6d14
Show file tree
Hide file tree
Showing 41 changed files with 69 additions and 69 deletions.
21 changes: 0 additions & 21 deletions opentracing-examples/README.md

This file was deleted.

21 changes: 21 additions & 0 deletions opentracing-testbed/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# OpenTracing-Java testbed

Goal of these examples is to
- test API changes
- use for regression testing
- show common instrumentation patterns

List of patterns:

- [activate_deactivate](src/test/java/io/opentracing/testbed/activate_deactivate) - actions are executed by scheduler.
It shows continuation as a solution to finish span when last action is completed.
- [active_span_replacement](src/test/java/io/opentracing/testbed/active_span_replacement) - start an isolated task and query for its result in another task/thread
- [actor_propagation](src/test/java/io/opentracing/testbed/actor_propagation) - tracing for blocking and non-blocking actor based tracing
- [client_server](src/test/java/io/opentracing/testbed/client_server) - typical client-server example
- [common_request_handler](src/test/java/io/opentracing/testbed/common_request_handler) - one request handler for all requests
- [late_span_finish](src/test/java/io/opentracing/testbed/late_span_finish) - late parent span finish
- [listener_per_request](src/test/java/io/opentracing/testbed/listener_per_request) - one listener per request
- [multiple_callbacks](src/test/java/io/opentracing/testbed/multiple_callbacks) - many callbacks spawned at the same time
- [nested_callbacks](src/test/java/io/opentracing/testbed/nested_callbacks) - one callback at the time, defined in a pipeline fashion
- [promise_propagation](src/test/java/io/opentracing/testbed/promise_propagation) - tracing patterns for promises with callbacks
- [suspend_resume_propagation](src/test/java/io/opentracing/testbed/suspend_resume_propagation) - tracing pattern for interleaving of spans
6 changes: 3 additions & 3 deletions opentracing-examples/pom.xml → opentracing-testbed/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
<version>0.31.1-SNAPSHOT</version>
</parent>

<artifactId>opentracing-examples</artifactId>
<name>OpenTracing-examples</name>
<description>OpenTracing Examples</description>
<artifactId>opentracing-testbed</artifactId>
<name>OpenTracing-testbed</name>
<description>OpenTracing Testbed</description>

<properties>
<main.basedir>${project.basedir}/..</main.basedir>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples;
package io.opentracing.testbed;

import io.opentracing.mock.MockSpan;
import io.opentracing.mock.MockTracer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.activate_deactivate;
package io.opentracing.testbed.activate_deactivate;

import io.opentracing.util.AutoFinishScope;
import io.opentracing.util.AutoFinishScope.Continuation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.activate_deactivate;
package io.opentracing.testbed.activate_deactivate;

import io.opentracing.Scope;
import io.opentracing.util.AutoFinishScope;
Expand All @@ -29,7 +29,7 @@
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

import static io.opentracing.examples.TestUtils.finishedSpansSize;
import static io.opentracing.testbed.TestUtils.finishedSpansSize;
import static org.awaitility.Awaitility.await;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.junit.Assert.assertEquals;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.active_span_replacement;
package io.opentracing.testbed.active_span_replacement;

import io.opentracing.Scope;
import io.opentracing.Span;
Expand All @@ -26,8 +26,8 @@
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;

import static io.opentracing.examples.TestUtils.finishedSpansSize;
import static io.opentracing.examples.TestUtils.sleep;
import static io.opentracing.testbed.TestUtils.finishedSpansSize;
import static io.opentracing.testbed.TestUtils.sleep;
import static org.awaitility.Awaitility.await;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.junit.Assert.assertEquals;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.actor_propagation;
package io.opentracing.testbed.actor_propagation;

import io.opentracing.References;
import io.opentracing.Scope;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.actor_propagation;
package io.opentracing.testbed.actor_propagation;

import io.opentracing.Scope;
import io.opentracing.mock.MockSpan;
Expand All @@ -27,8 +27,8 @@
import java.util.concurrent.Future;
import java.util.concurrent.Phaser;

import static io.opentracing.examples.TestUtils.getByTag;
import static io.opentracing.examples.TestUtils.getOneByTag;
import static io.opentracing.testbed.TestUtils.getByTag;
import static io.opentracing.testbed.TestUtils.getOneByTag;
import static org.assertj.core.api.Assertions.assertThat;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.client_server;
package io.opentracing.testbed.client_server;

import io.opentracing.Scope;
import io.opentracing.Tracer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.client_server;
package io.opentracing.testbed.client_server;

import java.util.HashMap;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.client_server;
package io.opentracing.testbed.client_server;

import io.opentracing.Scope;
import io.opentracing.SpanContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.client_server;
package io.opentracing.testbed.client_server;

import io.opentracing.mock.MockSpan;
import io.opentracing.mock.MockTracer;
Expand All @@ -26,8 +26,8 @@
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.TimeUnit;

import static io.opentracing.examples.TestUtils.finishedSpansSize;
import static io.opentracing.examples.TestUtils.getOneByTag;
import static io.opentracing.testbed.TestUtils.finishedSpansSize;
import static io.opentracing.testbed.TestUtils.getOneByTag;
import static org.awaitility.Awaitility.await;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.junit.Assert.assertEquals;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.common_request_handler;
package io.opentracing.testbed.common_request_handler;

import io.opentracing.examples.TestUtils;
import io.opentracing.testbed.TestUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.common_request_handler;
package io.opentracing.testbed.common_request_handler;

import java.util.HashMap;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.common_request_handler;
package io.opentracing.testbed.common_request_handler;

import io.opentracing.Scope;
import io.opentracing.mock.MockSpan;
Expand All @@ -26,7 +26,7 @@
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;

import static io.opentracing.examples.TestUtils.sortByStartMicros;
import static io.opentracing.testbed.TestUtils.sortByStartMicros;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.common_request_handler;
package io.opentracing.testbed.common_request_handler;

import io.opentracing.Span;
import io.opentracing.SpanContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.late_span_finish;
package io.opentracing.testbed.late_span_finish;

import io.opentracing.Scope;
import io.opentracing.Span;
Expand All @@ -26,8 +26,8 @@
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;

import static io.opentracing.examples.TestUtils.assertSameTrace;
import static io.opentracing.examples.TestUtils.sleep;
import static io.opentracing.testbed.TestUtils.assertSameTrace;
import static io.opentracing.testbed.TestUtils.sleep;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.listener_per_request;
package io.opentracing.testbed.listener_per_request;

import io.opentracing.Span;
import io.opentracing.Tracer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.listener_per_request;
package io.opentracing.testbed.listener_per_request;

import io.opentracing.mock.MockSpan;
import io.opentracing.mock.MockTracer;
Expand All @@ -22,7 +22,7 @@

import java.util.List;

import static io.opentracing.examples.TestUtils.getOneByTag;
import static io.opentracing.testbed.TestUtils.getOneByTag;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.listener_per_request;
package io.opentracing.testbed.listener_per_request;

import io.opentracing.Span;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.multiple_callbacks;
package io.opentracing.testbed.multiple_callbacks;

import io.opentracing.Scope;
import io.opentracing.Tracer;
Expand All @@ -25,7 +25,7 @@
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

import static io.opentracing.examples.TestUtils.sleep;
import static io.opentracing.testbed.TestUtils.sleep;

public class Client {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.multiple_callbacks;
package io.opentracing.testbed.multiple_callbacks;

import io.opentracing.Scope;
import io.opentracing.util.AutoFinishScopeManager;
Expand All @@ -23,7 +23,7 @@
import java.util.List;
import java.util.concurrent.TimeUnit;

import static io.opentracing.examples.TestUtils.finishedSpansSize;
import static io.opentracing.testbed.TestUtils.finishedSpansSize;
import static org.awaitility.Awaitility.await;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.junit.Assert.assertEquals;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.nested_callbacks;
package io.opentracing.testbed.nested_callbacks;

import io.opentracing.Scope;
import io.opentracing.Span;
Expand All @@ -27,7 +27,7 @@
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;

import static io.opentracing.examples.TestUtils.finishedSpansSize;
import static io.opentracing.testbed.TestUtils.finishedSpansSize;
import static org.awaitility.Awaitility.await;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.junit.Assert.assertEquals;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.promise_propagation;
package io.opentracing.testbed.promise_propagation;

import io.opentracing.References;
import io.opentracing.Scope;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.promise_propagation;
package io.opentracing.testbed.promise_propagation;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.promise_propagation;
package io.opentracing.testbed.promise_propagation;

import io.opentracing.Scope;
import io.opentracing.mock.MockSpan;
Expand All @@ -25,8 +25,8 @@
import org.junit.Before;
import org.junit.Test;

import static io.opentracing.examples.TestUtils.getByTag;
import static io.opentracing.examples.TestUtils.getOneByTag;
import static io.opentracing.testbed.TestUtils.getByTag;
import static io.opentracing.testbed.TestUtils.getOneByTag;
import static org.assertj.core.api.Assertions.assertThat;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package io.opentracing.examples.suspend_resume_propagation;
package io.opentracing.testbed.suspend_resume_propagation;

import io.opentracing.Scope;
import io.opentracing.Span;
Expand Down
Loading

0 comments on commit 81d6d14

Please sign in to comment.