Skip to content

Commit cd47e36

Browse files
committed
Merge remote-tracking branch 'upstream/main' into semconv-static-import
2 parents 604db83 + 3cb2ae1 commit cd47e36

File tree

13 files changed

+36
-83
lines changed

13 files changed

+36
-83
lines changed

.github/scripts/markdown-link-check-config.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/scripts/markdown-link-check-with-retry.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/reusable-markdown-link-check.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1414

15-
- name: Install markdown-link-check
16-
# https://github.com/tcort/markdown-link-check/issues/297
17-
run: npm install -g [email protected]
18-
19-
- name: Run markdown-link-check
20-
run: |
21-
find . -type f \
22-
-name '*.md' \
23-
-not -path './CHANGELOG.md' \
24-
-not -path './licenses/*' \
25-
-not -path '*/build/*' \
26-
| xargs .github/scripts/markdown-link-check-with-retry.sh
15+
- uses: lycheeverse/lychee-action@v2
16+
with:
17+
# remove version after next release of lychee-action
18+
lycheeVersion: latest
19+
# excluding links to pull requests and issues is done for performance
20+
args: >
21+
--include-fragments
22+
--exclude "^https://github.com/open-telemetry/opentelemetry-java-instrumentation/(issue|pull)/\\d+$"
23+
--exclude "^http://code.google.com/p/concurrentlinkedhashmap$"
24+
--max-retries 6
25+
.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ too disruptive to adopt right away.
761761
or `-Dotel.instrumentation.common.experimental.view-telemetry.enabled=true`.
762762
- ⚠️⚠️ Stable HTTP semantic conventions are now emitted ⚠️⚠️
763763
- TOO MANY CHANGES TO LIST HERE, be sure to review the full
764-
[list of changes](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/migration-guide.md#summary-of-changes).
764+
[list of changes](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/non-normative/http-migration.md#summary-of-changes).
765765
- Stable JVM semantic conventions are now emitted.
766766
- Memory metrics
767767
- `process.runtime.jvm.memory.usage` renamed to `jvm.memory.used`

dependencyManagement/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ val asmVersion = "9.7.1"
4646
val jmhVersion = "1.37"
4747
val mockitoVersion = "4.11.0"
4848
val slf4jVersion = "2.0.16"
49-
val semConvVersion = "1.28.0-alpha"
49+
val semConvVersion = "1.29.0-alpha"
5050

5151
val CORE_DEPENDENCIES = listOf(
5252
"io.opentelemetry.semconv:opentelemetry-semconv:${semConvVersion}",
@@ -116,7 +116,7 @@ val DEPENDENCIES = listOf(
116116
"org.objenesis:objenesis:3.4",
117117
"javax.validation:validation-api:2.0.1.Final",
118118
"org.snakeyaml:snakeyaml-engine:2.8",
119-
"org.elasticmq:elasticmq-rest-sqs_2.13:1.6.9"
119+
"org.elasticmq:elasticmq-rest-sqs_2.13:1.6.10"
120120
)
121121

122122
javaPlatform {

instrumentation/couchbase/couchbase-3.1/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/couchbase/v3_1/CouchbaseClient31Test.java

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@
55

66
package io.opentelemetry.javaagent.instrumentation.couchbase.v3_1;
77

8-
import static org.awaitility.Awaitility.await;
9-
108
import com.couchbase.client.core.env.TimeoutConfig;
119
import com.couchbase.client.core.error.DocumentNotFoundException;
12-
import com.couchbase.client.core.error.UnambiguousTimeoutException;
1310
import com.couchbase.client.java.Bucket;
1411
import com.couchbase.client.java.Cluster;
1512
import com.couchbase.client.java.ClusterOptions;
@@ -44,20 +41,8 @@ class CouchbaseClient31Test {
4441

4542
@BeforeAll
4643
static void setup() {
47-
// wait and retry in the hope that it will help against test flakiness
48-
await()
49-
.atMost(Duration.ofMinutes(5))
50-
.ignoreException(UnambiguousTimeoutException.class)
51-
.until(
52-
() -> {
53-
startCouchbase();
54-
return true;
55-
});
56-
}
57-
58-
private static void startCouchbase() {
5944
couchbase =
60-
new CouchbaseContainer("couchbase/server:7.6.0")
45+
new CouchbaseContainer("couchbase/server:6.5.1")
6146
.withExposedPorts(8091)
6247
.withEnabledServices(CouchbaseService.KV)
6348
.withBucket(new BucketDefinition("test"))

instrumentation/lettuce/lettuce-5.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/lettuce/v5_0/AbstractLettuceClientTest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import io.opentelemetry.instrumentation.testing.internal.AutoCleanupExtension;
1212
import io.opentelemetry.instrumentation.testing.junit.AgentInstrumentationExtension;
1313
import io.opentelemetry.instrumentation.testing.junit.InstrumentationExtension;
14+
import java.util.concurrent.TimeUnit;
1415
import org.junit.jupiter.api.extension.RegisterExtension;
1516
import org.slf4j.Logger;
1617
import org.slf4j.LoggerFactory;
@@ -78,4 +79,16 @@ protected static StatefulRedisConnection<String, String> newContainerConnection(
7879

7980
return statefulConnection;
8081
}
82+
83+
static void shutdown(RedisClient redisClient) {
84+
// using shutdownAsync instead of redisClient.shutdown() because there is a bug in the redis
85+
// client that can cause the shutdown to hang
86+
try {
87+
redisClient.shutdownAsync(0, 15, TimeUnit.SECONDS).get(15, TimeUnit.SECONDS);
88+
} catch (InterruptedException exception) {
89+
Thread.currentThread().interrupt();
90+
} catch (Exception exception) {
91+
// ignore
92+
}
93+
}
8194
}

instrumentation/lettuce/lettuce-5.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/lettuce/v5_0/LettuceAsyncClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static void setUp() throws UnknownHostException {
9393
@AfterAll
9494
static void cleanUp() {
9595
connection.close();
96-
redisClient.shutdown();
96+
shutdown(redisClient);
9797
redisServer.stop();
9898
}
9999

instrumentation/lettuce/lettuce-5.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/lettuce/v5_0/LettuceReactiveClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static void setUp() throws UnknownHostException {
6363
@AfterAll
6464
static void cleanUp() {
6565
connection.close();
66-
redisClient.shutdown();
66+
shutdown(redisClient);
6767
redisServer.stop();
6868
}
6969

instrumentation/lettuce/lettuce-5.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/lettuce/v5_0/LettuceSyncClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static void setUp() throws UnknownHostException {
7474
@AfterAll
7575
static void cleanUp() {
7676
connection.close();
77-
redisClient.shutdown();
77+
shutdown(redisClient);
7878
redisServer.stop();
7979
}
8080

0 commit comments

Comments
 (0)