Skip to content

Commit a33e2c3

Browse files
Merge branch 'open-telemetry:main' into fix-noclassdeffound-in-predestroy
2 parents 58e9a52 + 682ccd2 commit a33e2c3

File tree

17 files changed

+60
-51
lines changed

17 files changed

+60
-51
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,12 @@ jobs:
132132
env:
133133
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134134
run: |
135+
instrumentation_version=$(grep -Po "val otelInstrumentationVersion = \"\K[0-9]+.[0-9]+.[0-9]+" dependencyManagement/build.gradle.kts)
136+
135137
# conditional blocks not indented because of the heredoc
136138
if [[ $VERSION == *.0 ]]; then
137139
cat > /tmp/release-notes.txt << EOF
138-
This release targets the OpenTelemetry SDK $VERSION.
140+
This release targets the OpenTelemetry Java Instrumentation [$instrumentation_version](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/tag/v$instrumentation_version).
139141
140142
EOF
141143
else

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
## Unreleased
44

5+
## Version 1.38.0 (2024-08-19)
6+
7+
### JFR connection
8+
9+
- Recording close should not throw exception
10+
([#1412](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/1412))
11+
512
## Version 1.37.0 (2024-07-18)
613

714
### AWS resources

buildSrc/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies {
1515
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.25.0")
1616
implementation("net.ltgt.gradle:gradle-errorprone-plugin:4.0.1")
1717
implementation("net.ltgt.gradle:gradle-nullaway-plugin:2.0.0")
18-
implementation("com.gradle.enterprise:com.gradle.enterprise.gradle.plugin:3.17.6")
18+
implementation("com.gradle.enterprise:com.gradle.enterprise.gradle.plugin:3.18")
1919
}
2020

2121
spotless {

consistent-sampling/src/main/java/io/opentelemetry/contrib/sampler/consistent/ConsistentProbabilityBasedSampler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
package io.opentelemetry.contrib.sampler.consistent;
77

8+
import java.util.Locale;
89
import javax.annotation.concurrent.Immutable;
910

1011
/** A consistent sampler that samples with a fixed probability. */
@@ -32,7 +33,7 @@ final class ConsistentProbabilityBasedSampler extends ConsistentSampler {
3233
throw new IllegalArgumentException("Sampling probability must be in range [0.0, 1.0]!");
3334
}
3435
this.description =
35-
String.format("ConsistentProbabilityBasedSampler{%.6f}", samplingProbability);
36+
String.format(Locale.ROOT, "ConsistentProbabilityBasedSampler{%.6f}", samplingProbability);
3637
this.randomGenerator = randomGenerator;
3738

3839
lowerPValue = getLowerBoundP(samplingProbability);

consistent-sampling/src/main/java/io/opentelemetry/contrib/sampler/consistent/ConsistentRateLimitingSampler.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import static java.util.Objects.requireNonNull;
99

1010
import io.opentelemetry.sdk.trace.samplers.Sampler;
11+
import java.util.Locale;
1112
import java.util.concurrent.atomic.AtomicReference;
1213
import java.util.function.LongSupplier;
1314
import javax.annotation.concurrent.Immutable;
@@ -113,8 +114,10 @@ public State(double effectiveWindowCount, double effectiveWindowNanos, long last
113114
}
114115
this.description =
115116
String.format(
117+
Locale.ROOT,
116118
"ConsistentRateLimitingSampler{%.6f, %.6f}",
117-
targetSpansPerSecondLimit, adaptationTimeSeconds);
119+
targetSpansPerSecondLimit,
120+
adaptationTimeSeconds);
118121
this.nanoTimeSupplier = requireNonNull(nanoTimeSupplier);
119122

120123
this.inverseAdaptationTimeNanos = 1e-9 / adaptationTimeSeconds;

dependencyManagement/build.gradle.kts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,25 @@ data class DependencySet(val group: String, val version: String, val modules: Li
77
val dependencyVersions = hashMapOf<String, String>()
88
rootProject.extra["versions"] = dependencyVersions
99

10+
val otelInstrumentationVersion = "2.7.0-alpha"
11+
1012
val DEPENDENCY_BOMS = listOf(
1113
"com.fasterxml.jackson:jackson-bom:2.17.2",
12-
"com.google.guava:guava-bom:33.2.1-jre",
14+
"com.google.guava:guava-bom:33.3.0-jre",
1315
"com.linecorp.armeria:armeria-bom:1.30.0",
14-
"org.junit:junit-bom:5.10.3",
16+
"org.junit:junit-bom:5.11.0",
1517
"io.grpc:grpc-bom:1.66.0",
16-
"io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:2.6.0-alpha",
18+
"io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:${otelInstrumentationVersion}",
1719
"org.testcontainers:testcontainers-bom:1.20.1"
1820
)
1921

2022
val autoServiceVersion = "1.1.1"
2123
val autoValueVersion = "1.11.0"
22-
val errorProneVersion = "2.29.2"
24+
val errorProneVersion = "2.30.0"
2325
val prometheusVersion = "0.16.0"
2426
val mockitoVersion = "4.11.0"
2527
val slf4jVersion = "2.0.16"
26-
val semConvVersion = "1.26.0-alpha"
28+
val semConvVersion = "1.27.0-alpha"
2729

2830
val CORE_DEPENDENCIES = listOf(
2931
"com.google.auto.service:auto-service:${autoServiceVersion}",
@@ -53,7 +55,7 @@ val DEPENDENCIES = listOf(
5355
"com.google.code.findbugs:annotations:3.0.1u2",
5456
"com.google.code.findbugs:jsr305:3.0.2",
5557
"com.squareup.okhttp3:okhttp:4.12.0",
56-
"com.uber.nullaway:nullaway:0.11.1",
58+
"com.uber.nullaway:nullaway:0.11.2",
5759
"org.assertj:assertj-core:3.26.3",
5860
"org.awaitility:awaitility:4.2.2",
5961
"org.bouncycastle:bcpkix-jdk15on:1.70",

gradle/wrapper/gradle-wrapper.jar

79 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=d725d707bfabd4dfdc958c624003b3c80accc03f7037b5122c4b1d0ef15cecab
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
3+
distributionSha256Sum=5b9c5eb3f9fc2c94abaea57d90bd78747ca117ddbbf96c859d3741181a12bf2a
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

inferred-spans/src/main/java/io/opentelemetry/contrib/inferredspans/internal/SamplingProfiler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import java.util.Collections;
3737
import java.util.Date;
3838
import java.util.List;
39+
import java.util.Locale;
3940
import java.util.Objects;
4041
import java.util.concurrent.Executors;
4142
import java.util.concurrent.ScheduledExecutorService;
@@ -563,7 +564,7 @@ public void processTraces() throws IOException {
563564

564565
@SuppressWarnings("JavaUtilDate")
565566
private void backupDiagnosticFiles(long eof) throws IOException {
566-
String now = String.format("%tFT%<tT.%<tL", new Date());
567+
String now = String.format(Locale.ROOT, "%tFT%<tT.%<tL", new Date());
567568
Path profilerDir = Paths.get(System.getProperty("java.io.tmpdir"), "profiler");
568569
profilerDir.toFile().mkdir();
569570

inferred-spans/src/main/java/io/opentelemetry/contrib/inferredspans/internal/asyncprofiler/BufferedFile.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import java.nio.channels.FileChannel;
1515
import java.nio.charset.StandardCharsets;
1616
import java.nio.file.StandardOpenOption;
17+
import java.util.Locale;
1718
import java.util.logging.Level;
1819
import java.util.logging.Logger;
1920
import javax.annotation.Nullable;
@@ -243,7 +244,10 @@ public void ensureRemaining(int minRemaining, int maxRead) throws IOException {
243244
if (minRemaining > buffer.capacity()) {
244245
throw new IllegalStateException(
245246
String.format(
246-
"Length (%d) greater than buffer capacity (%d)", minRemaining, buffer.capacity()));
247+
Locale.ROOT,
248+
"Length (%d) greater than buffer capacity (%d)",
249+
minRemaining,
250+
buffer.capacity()));
247251
}
248252
if (buffer.remaining() < minRemaining) {
249253
read(position(), maxRead);

0 commit comments

Comments
 (0)