- Bump all opentelemetry-related version variables in Dependencies.scala file to the desired version
- Download the opentelemetry-javaagent from here. Make sure to choose the latest version. Place it in the root dir of the project.
- Build the agent-for-testing jar file. See the below instructions on how to do that. Place it in the root dir of the project.
Tests in this repo require aggregation temporality to be set to CUMULATIVE
. However, there was a change made
to the opentelemetry-java-instrumentation
agent-for-testing.jar that set the temporality to DELTA
(change reference).
For this reason we have to build the .jar with temporality set to CUMULATIVE
ourselves. Following are the steps:
- Clone the https://github.com/open-telemetry/opentelemetry-java-instrumentation.
- Checkout the tag of the version to which the update is being done.
- Change OtlpInMemoryMetricExporter.java
getAggregationTemporality()
to returnAggregationTemporality.CUMULATIVE
. - Run gradle task to build the jar -
:testing:agent-for-testing:jar
. - The jar can be found in
testing/agent-for-testing/build/libs/
.