diff --git a/instrumentation/benchmarks/README.md b/instrumentation/benchmarks/README.md index 2effc5546b..e0e74e083e 100644 --- a/instrumentation/benchmarks/README.md +++ b/instrumentation/benchmarks/README.md @@ -5,7 +5,13 @@ benchmarks for Brave instrumentation. You can use these to measure overhead of using Brave. ### Running the benchmark -From the project directory, run `./mvnw install -pl instrumentation/benchmarks -am -DskipTests` to build the benchmarks, and the following to run them: +From the project directory, run this to build the benchmarks: + +```bash +$ ./mvnw install -pl instrumentation/benchmarks -am -Dmaven.test.skip.exec=true` +``` + +and the following to run them: ```bash $ java -jar instrumentation/benchmarks/target/benchmarks.jar diff --git a/instrumentation/benchmarks/pom.xml b/instrumentation/benchmarks/pom.xml index ddfe434e70..092d8fc2c1 100644 --- a/instrumentation/benchmarks/pom.xml +++ b/instrumentation/benchmarks/pom.xml @@ -13,7 +13,9 @@ the License. --> - + 4.0.0 io.zipkin.brave @@ -31,142 +33,147 @@ 2.2.30.Final - + + org.openjdk.jmh jmh-core ${jmh.version} - - - - org.openjdk.jmh - jmh-generator-annprocess - ${jmh.version} - provided - - - - org.apache.logging.log4j - log4j-core - ${log4j.version} + test com.amazonaws aws-xray-recorder-sdk-core 2.15.1 + test ${project.groupId} brave-instrumentation-http ${project.version} + test ${project.groupId} brave-instrumentation-httpclient ${project.version} + test ${project.groupId} brave-instrumentation-httpasyncclient ${project.version} + test org.apache.httpcomponents httpasyncclient ${httpasyncclient.version} + test ${project.groupId} brave-instrumentation-spring-web ${project.version} + test org.springframework spring-web ${spring5.version} + test ${project.groupId} brave-instrumentation-okhttp3 ${project.version} + test com.squareup.okhttp3 okhttp ${okhttp.version} + test ${project.groupId} brave-instrumentation-jaxrs2 ${project.version} + test net.ltgt.jaxrs resteasy-client-okhttp3 1.1 + test org.jboss.resteasy resteasy-client ${resteasy.version} + test ${project.groupId} brave-instrumentation-servlet ${project.version} + test ${project.groupId} brave-instrumentation-spring-webmvc ${project.version} + test org.springframework spring-webmvc ${spring5.version} + test ${project.groupId} brave-instrumentation-jersey-server ${project.version} + test org.glassfish.jersey.containers jersey-container-servlet ${jersey.version} + test ${project.groupId} brave-instrumentation-netty-codec-http ${project.version} + test io.netty netty-codec-http ${netty.version} - - - org.apache.logging.log4j - log4j-slf4j-impl - ${log4j.version} + test ${project.groupId} brave-instrumentation-kafka-clients ${project.version} + test org.apache.kafka @@ -178,34 +185,40 @@ slf4j-log4j12 + test ${project.groupId} brave-instrumentation-jms ${project.version} + test org.apache.activemq activemq-broker ${activemq.version} + test ${project.groupId} brave-instrumentation-spring-rabbit ${project.version} + test org.springframework.amqp spring-rabbit ${spring-rabbit.version} + test io.undertow undertow-core ${undertow-servlet.version} + test io.undertow @@ -217,37 +230,49 @@ jboss-servlet-api_3.1_spec + test org.jboss.resteasy resteasy-undertow ${resteasy.version} + test ${project.groupId} brave-context-log4j2 ${project.version} + test + - maven-shade-plugin + maven-assembly-plugin + ${maven-assembly-plugin.version} + + + src/test/assembly/test-jar.xml + + + make-assembly package - shade + single + true benchmarks - - + false + + org.openjdk.jmh.Main - - - false + + @@ -257,15 +282,22 @@ default-compile - compile + test-compile - compile + testCompile javac - + + + + org.openjdk.jmh + jmh-generator-annprocess + ${jmh.version} + + diff --git a/instrumentation/benchmarks/src/test/assembly/test-jar.xml b/instrumentation/benchmarks/src/test/assembly/test-jar.xml new file mode 100644 index 0000000000..3be0b4bee4 --- /dev/null +++ b/instrumentation/benchmarks/src/test/assembly/test-jar.xml @@ -0,0 +1,44 @@ + + + + test-jar + + jar + + false + + + / + true + true + test + + + + + ${project.build.directory}/test-classes + / + + **/* + + true + + + diff --git a/instrumentation/benchmarks/src/main/java/brave/EndToEndBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/EndToEndBenchmarks.java similarity index 99% rename from instrumentation/benchmarks/src/main/java/brave/EndToEndBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/EndToEndBenchmarks.java index fa05dffb6b..6586202bd1 100644 --- a/instrumentation/benchmarks/src/main/java/brave/EndToEndBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/EndToEndBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2020 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/TracerBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/TracerBenchmarks.java similarity index 99% rename from instrumentation/benchmarks/src/main/java/brave/TracerBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/TracerBenchmarks.java index d98ee8305f..16be4ced3a 100644 --- a/instrumentation/benchmarks/src/main/java/brave/TracerBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/TracerBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2020 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/baggage/BaggagePropagationBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/baggage/BaggagePropagationBenchmarks.java similarity index 100% rename from instrumentation/benchmarks/src/main/java/brave/baggage/BaggagePropagationBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/baggage/BaggagePropagationBenchmarks.java diff --git a/instrumentation/benchmarks/src/main/java/brave/handler/MutableSpanBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/handler/MutableSpanBenchmarks.java similarity index 100% rename from instrumentation/benchmarks/src/main/java/brave/handler/MutableSpanBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/handler/MutableSpanBenchmarks.java diff --git a/instrumentation/benchmarks/src/main/java/brave/http/HttpClientBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/http/HttpClientBenchmarks.java similarity index 100% rename from instrumentation/benchmarks/src/main/java/brave/http/HttpClientBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/http/HttpClientBenchmarks.java diff --git a/instrumentation/benchmarks/src/main/java/brave/http/HttpServerBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/http/HttpServerBenchmarks.java similarity index 99% rename from instrumentation/benchmarks/src/main/java/brave/http/HttpServerBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/http/HttpServerBenchmarks.java index 73aebb3195..50916108d8 100644 --- a/instrumentation/benchmarks/src/main/java/brave/http/HttpServerBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/http/HttpServerBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2020 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/httpasyncclient/ApacheHttpAsyncClientBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/httpasyncclient/ApacheHttpAsyncClientBenchmarks.java similarity index 97% rename from instrumentation/benchmarks/src/main/java/brave/httpasyncclient/ApacheHttpAsyncClientBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/httpasyncclient/ApacheHttpAsyncClientBenchmarks.java index 455ad1ffc8..1ffde07050 100644 --- a/instrumentation/benchmarks/src/main/java/brave/httpasyncclient/ApacheHttpAsyncClientBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/httpasyncclient/ApacheHttpAsyncClientBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2019 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/httpclient/ApacheHttpClientBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/httpclient/ApacheHttpClientBenchmarks.java similarity index 97% rename from instrumentation/benchmarks/src/main/java/brave/httpclient/ApacheHttpClientBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/httpclient/ApacheHttpClientBenchmarks.java index e3522694c2..bf7eac28a3 100644 --- a/instrumentation/benchmarks/src/main/java/brave/httpclient/ApacheHttpClientBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/httpclient/ApacheHttpClientBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2019 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/internal/PlatformBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/internal/PlatformBenchmarks.java similarity index 99% rename from instrumentation/benchmarks/src/main/java/brave/internal/PlatformBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/internal/PlatformBenchmarks.java index d90857567b..a1dcef318e 100644 --- a/instrumentation/benchmarks/src/main/java/brave/internal/PlatformBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/internal/PlatformBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2019 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/internal/codec/CharSequencesBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/internal/codec/CharSequencesBenchmarks.java similarity index 99% rename from instrumentation/benchmarks/src/main/java/brave/internal/codec/CharSequencesBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/internal/codec/CharSequencesBenchmarks.java index 187bf73c1e..08f73537c7 100644 --- a/instrumentation/benchmarks/src/main/java/brave/internal/codec/CharSequencesBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/internal/codec/CharSequencesBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2020 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/internal/codec/EntrySplitterBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/internal/codec/EntrySplitterBenchmarks.java similarity index 98% rename from instrumentation/benchmarks/src/main/java/brave/internal/codec/EntrySplitterBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/internal/codec/EntrySplitterBenchmarks.java index 90b9f54b25..1d7978b50b 100644 --- a/instrumentation/benchmarks/src/main/java/brave/internal/codec/EntrySplitterBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/internal/codec/EntrySplitterBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2020 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/internal/codec/ZipkinV2JsonWriterBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/internal/codec/ZipkinV2JsonWriterBenchmarks.java similarity index 100% rename from instrumentation/benchmarks/src/main/java/brave/internal/codec/ZipkinV2JsonWriterBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/internal/codec/ZipkinV2JsonWriterBenchmarks.java diff --git a/instrumentation/benchmarks/src/main/java/brave/internal/handler/NoopAwareSpanHandlerBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/internal/handler/NoopAwareSpanHandlerBenchmarks.java similarity index 98% rename from instrumentation/benchmarks/src/main/java/brave/internal/handler/NoopAwareSpanHandlerBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/internal/handler/NoopAwareSpanHandlerBenchmarks.java index f93c43f534..571a569ee8 100644 --- a/instrumentation/benchmarks/src/main/java/brave/internal/handler/NoopAwareSpanHandlerBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/internal/handler/NoopAwareSpanHandlerBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2020 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/jaxrs2/JaxRs2ClientBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/jaxrs2/JaxRs2ClientBenchmarks.java similarity index 97% rename from instrumentation/benchmarks/src/main/java/brave/jaxrs2/JaxRs2ClientBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/jaxrs2/JaxRs2ClientBenchmarks.java index df2eefa0cf..a03791bf33 100644 --- a/instrumentation/benchmarks/src/main/java/brave/jaxrs2/JaxRs2ClientBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/jaxrs2/JaxRs2ClientBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2019 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/jaxrs2/JaxRs2ServerBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/jaxrs2/JaxRs2ServerBenchmarks.java similarity index 98% rename from instrumentation/benchmarks/src/main/java/brave/jaxrs2/JaxRs2ServerBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/jaxrs2/JaxRs2ServerBenchmarks.java index 8636e05a27..f2341b8544 100644 --- a/instrumentation/benchmarks/src/main/java/brave/jaxrs2/JaxRs2ServerBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/jaxrs2/JaxRs2ServerBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2020 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/jersey/server/FakeExtendedUriInfo.java b/instrumentation/benchmarks/src/test/java/brave/jersey/server/FakeExtendedUriInfo.java similarity index 98% rename from instrumentation/benchmarks/src/main/java/brave/jersey/server/FakeExtendedUriInfo.java rename to instrumentation/benchmarks/src/test/java/brave/jersey/server/FakeExtendedUriInfo.java index 6fe04485df..fe381c09ba 100644 --- a/instrumentation/benchmarks/src/main/java/brave/jersey/server/FakeExtendedUriInfo.java +++ b/instrumentation/benchmarks/src/test/java/brave/jersey/server/FakeExtendedUriInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2019 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/jersey/server/JerseyServerBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/jersey/server/JerseyServerBenchmarks.java similarity index 100% rename from instrumentation/benchmarks/src/main/java/brave/jersey/server/JerseyServerBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/jersey/server/JerseyServerBenchmarks.java diff --git a/instrumentation/benchmarks/src/main/java/brave/jersey/server/TracingApplicationEventListenerAdapterBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/jersey/server/TracingApplicationEventListenerAdapterBenchmarks.java similarity index 98% rename from instrumentation/benchmarks/src/main/java/brave/jersey/server/TracingApplicationEventListenerAdapterBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/jersey/server/TracingApplicationEventListenerAdapterBenchmarks.java index a62d5bef95..526ede7a02 100644 --- a/instrumentation/benchmarks/src/main/java/brave/jersey/server/TracingApplicationEventListenerAdapterBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/jersey/server/TracingApplicationEventListenerAdapterBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2020 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/jms/JmsMessageProducerBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/jms/JmsMessageProducerBenchmarks.java similarity index 100% rename from instrumentation/benchmarks/src/main/java/brave/jms/JmsMessageProducerBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/jms/JmsMessageProducerBenchmarks.java diff --git a/instrumentation/benchmarks/src/main/java/brave/kafka/clients/TracingProducerBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/kafka/clients/TracingProducerBenchmarks.java similarity index 100% rename from instrumentation/benchmarks/src/main/java/brave/kafka/clients/TracingProducerBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/kafka/clients/TracingProducerBenchmarks.java diff --git a/instrumentation/benchmarks/src/main/java/brave/netty/http/HelloWorldHandler.java b/instrumentation/benchmarks/src/test/java/brave/netty/http/HelloWorldHandler.java similarity index 100% rename from instrumentation/benchmarks/src/main/java/brave/netty/http/HelloWorldHandler.java rename to instrumentation/benchmarks/src/test/java/brave/netty/http/HelloWorldHandler.java diff --git a/instrumentation/benchmarks/src/main/java/brave/netty/http/NettyHttpServerBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/netty/http/NettyHttpServerBenchmarks.java similarity index 100% rename from instrumentation/benchmarks/src/main/java/brave/netty/http/NettyHttpServerBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/netty/http/NettyHttpServerBenchmarks.java diff --git a/instrumentation/benchmarks/src/main/java/brave/okhttp3/OkHttpClientBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/okhttp3/OkHttpClientBenchmarks.java similarity index 97% rename from instrumentation/benchmarks/src/main/java/brave/okhttp3/OkHttpClientBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/okhttp3/OkHttpClientBenchmarks.java index 0feec9f1d0..937e51139f 100644 --- a/instrumentation/benchmarks/src/main/java/brave/okhttp3/OkHttpClientBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/okhttp3/OkHttpClientBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2019 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/propagation/B3PropagationBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/propagation/B3PropagationBenchmarks.java similarity index 100% rename from instrumentation/benchmarks/src/main/java/brave/propagation/B3PropagationBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/propagation/B3PropagationBenchmarks.java diff --git a/instrumentation/benchmarks/src/main/java/brave/propagation/B3SinglePropagationBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/propagation/B3SinglePropagationBenchmarks.java similarity index 98% rename from instrumentation/benchmarks/src/main/java/brave/propagation/B3SinglePropagationBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/propagation/B3SinglePropagationBenchmarks.java index cd606014f3..bb18dde8b3 100644 --- a/instrumentation/benchmarks/src/main/java/brave/propagation/B3SinglePropagationBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/propagation/B3SinglePropagationBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2020 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/propagation/CurrentTraceContextBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/propagation/CurrentTraceContextBenchmarks.java similarity index 100% rename from instrumentation/benchmarks/src/main/java/brave/propagation/CurrentTraceContextBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/propagation/CurrentTraceContextBenchmarks.java diff --git a/instrumentation/benchmarks/src/main/java/brave/sampler/SamplerBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/sampler/SamplerBenchmarks.java similarity index 99% rename from instrumentation/benchmarks/src/main/java/brave/sampler/SamplerBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/sampler/SamplerBenchmarks.java index 40031a1d7d..c26ddeaf8f 100644 --- a/instrumentation/benchmarks/src/main/java/brave/sampler/SamplerBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/sampler/SamplerBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2019 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/servlet/ServletBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/servlet/ServletBenchmarks.java similarity index 100% rename from instrumentation/benchmarks/src/main/java/brave/servlet/ServletBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/servlet/ServletBenchmarks.java diff --git a/instrumentation/benchmarks/src/main/java/brave/servlet/internal/ServletRuntimeBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/servlet/internal/ServletRuntimeBenchmarks.java similarity index 99% rename from instrumentation/benchmarks/src/main/java/brave/servlet/internal/ServletRuntimeBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/servlet/internal/ServletRuntimeBenchmarks.java index 5dd906bbef..941c87f792 100644 --- a/instrumentation/benchmarks/src/main/java/brave/servlet/internal/ServletRuntimeBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/servlet/internal/ServletRuntimeBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2019 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/spring/rabbit/TracingMessagePostProcessorBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/spring/rabbit/TracingMessagePostProcessorBenchmarks.java similarity index 100% rename from instrumentation/benchmarks/src/main/java/brave/spring/rabbit/TracingMessagePostProcessorBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/spring/rabbit/TracingMessagePostProcessorBenchmarks.java diff --git a/instrumentation/benchmarks/src/main/java/brave/spring/web/AsyncRestTemplateBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/spring/web/AsyncRestTemplateBenchmarks.java similarity index 97% rename from instrumentation/benchmarks/src/main/java/brave/spring/web/AsyncRestTemplateBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/spring/web/AsyncRestTemplateBenchmarks.java index a291dcf6cf..e2bb54eff3 100644 --- a/instrumentation/benchmarks/src/main/java/brave/spring/web/AsyncRestTemplateBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/spring/web/AsyncRestTemplateBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2019 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/spring/web/RestTemplateBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/spring/web/RestTemplateBenchmarks.java similarity index 97% rename from instrumentation/benchmarks/src/main/java/brave/spring/web/RestTemplateBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/spring/web/RestTemplateBenchmarks.java index 19a77c9325..c39b6c37a6 100644 --- a/instrumentation/benchmarks/src/main/java/brave/spring/web/RestTemplateBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/spring/web/RestTemplateBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2019 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/java/brave/spring/webmvc/WebMvcBenchmarks.java b/instrumentation/benchmarks/src/test/java/brave/spring/webmvc/WebMvcBenchmarks.java similarity index 98% rename from instrumentation/benchmarks/src/main/java/brave/spring/webmvc/WebMvcBenchmarks.java rename to instrumentation/benchmarks/src/test/java/brave/spring/webmvc/WebMvcBenchmarks.java index 2325859523..99717740de 100644 --- a/instrumentation/benchmarks/src/main/java/brave/spring/webmvc/WebMvcBenchmarks.java +++ b/instrumentation/benchmarks/src/test/java/brave/spring/webmvc/WebMvcBenchmarks.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2020 The OpenZipkin Authors + * Copyright 2013-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at diff --git a/instrumentation/benchmarks/src/main/resources/log4j2.properties b/instrumentation/benchmarks/src/test/resources/log4j2.properties similarity index 100% rename from instrumentation/benchmarks/src/main/resources/log4j2.properties rename to instrumentation/benchmarks/src/test/resources/log4j2.properties diff --git a/pom.xml b/pom.xml index 988d827f4b..6154d77402 100755 --- a/pom.xml +++ b/pom.xml @@ -142,6 +142,7 @@ 1.2.8 4.3 + 3.6.0 5.1.9 3.12.1 @@ -155,7 +156,6 @@ 3.6.3 3.3.0 3.0.1 - 3.5.2 3.3.0 3.2.5 1.6.13 @@ -372,11 +372,6 @@ - - maven-shade-plugin - ${maven-shade-plugin.version} - - maven-invoker-plugin ${maven-invoker-plugin.version}