Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 1.7 KB

opentelemetry-version-update-instructions.md

File metadata and controls

22 lines (18 loc) · 1.7 KB

OpenTelemetry version update instructions

  1. Bump all opentelemetry-related version variables in Dependencies.scala file to the desired version
  2. Download the opentelemetry-javaagent from here. Make sure to choose the latest version. Place it in the root dir of the project.
  3. 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.

Agent for testing, workaround: how to build the agent-for-testing with CUMULATIVE aggregation mode?

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:

  1. Clone the https://github.com/open-telemetry/opentelemetry-java-instrumentation.
  2. Checkout the tag of the version to which the update is being done.
  3. Change OtlpInMemoryMetricExporter.java getAggregationTemporality() to return AggregationTemporality.CUMULATIVE.
  4. Run gradle task to build the jar - :testing:agent-for-testing:jar.
  5. The jar can be found in testing/agent-for-testing/build/libs/.