Skip to content

Commit 51c0581

Browse files
authored
Code review sweep (run 24919538656) (open-telemetry#18282)
1 parent 785c8d8 commit 51c0581

11 files changed

Lines changed: 30 additions & 22 deletions

File tree

instrumentation/vaadin-14.2/metadata.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ features:
88
- CONTROLLER_SPANS
99
configurations:
1010
- name: otel.instrumentation.common.experimental.controller-telemetry.enabled
11+
declarative_name: java.common.controller_telemetry/development.enabled
1112
description: Enables the creation of experimental controller spans.
1213
type: boolean
1314
default: false

instrumentation/vaadin-14.2/testing/src/main/java/io/opentelemetry/javaagent/instrumentation/vaadin/v14_2/AbstractVaadinTest.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import java.util.HashMap;
3030
import java.util.List;
3131
import java.util.Map;
32-
import org.junit.jupiter.api.AfterAll;
3332
import org.junit.jupiter.api.BeforeAll;
3433
import org.junit.jupiter.api.Test;
3534
import org.junit.jupiter.api.extension.RegisterExtension;
@@ -76,25 +75,19 @@ static ConfigurableApplicationContext start(int port, String contextPath) {
7675
@BeforeAll
7776
protected void setup() throws URISyntaxException {
7877
startServer();
78+
cleanup.deferAfterAll(this::cleanupServer);
7979

8080
Testcontainers.exposeHostPorts(port);
8181

8282
browser =
8383
new BrowserWebDriverContainer("selenium/standalone-chrome:4.43.0")
8484
.withLogConsumer(new Slf4jLogConsumer(logger));
8585
browser.start();
86+
cleanup.deferAfterAll(browser::stop);
8687

8788
address = new URI("http://host.testcontainers.internal:" + port + getContextPath() + "/");
8889
}
8990

90-
@AfterAll
91-
void cleanup() {
92-
cleanupServer();
93-
if (browser != null) {
94-
browser.stop();
95-
}
96-
}
97-
9891
protected void prepareVaadinBaseDir(File baseDir) {}
9992

10093
protected static void copyClasspathResource(String resource, Path destination) {

instrumentation/vertx/vertx-http-client/vertx-http-client-3.0/metadata.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ semantic_conventions:
88
library_link: https://vertx.io/docs/vertx-core/java/
99
configurations:
1010
- name: otel.instrumentation.http.known-methods
11+
declarative_name: java.common.http.known_methods
1112
description: >
1213
Configures the instrumentation to recognize an alternative set of HTTP request methods. All
1314
other methods will be treated as `_OTHER`.
1415
type: list
1516
default: "CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE"
1617
- name: otel.instrumentation.http.client.capture-request-headers
18+
declarative_name: general.http.client.request_captured_headers
1719
description: List of HTTP request headers to capture in HTTP client telemetry.
1820
type: list
1921
default: ""
2022
- name: otel.instrumentation.http.client.capture-response-headers
23+
declarative_name: general.http.client.response_captured_headers
2124
description: List of HTTP response headers to capture in HTTP client telemetry.
2225
type: list
2326
default: ""
@@ -26,13 +29,15 @@ configurations:
2629
type: map
2730
default: ""
2831
- name: otel.instrumentation.http.client.emit-experimental-telemetry
32+
declarative_name: java.common.http.client.emit_experimental_telemetry/development
2933
description: >
3034
Enable the capture of experimental HTTP client telemetry. Adds the `http.request.body.size`
3135
and `http.response.body.size` attributes to spans, and records `http.client.request.size` and
3236
`http.client.response.size` metrics.
3337
type: boolean
3438
default: false
3539
- name: otel.instrumentation.http.client.experimental.redact-query-parameters
40+
declarative_name: java.common.http.client.redact_query_parameters/development
3641
description: Redact sensitive URL parameters. See https://opentelemetry.io/docs/specs/semconv/http/http-spans.
3742
type: boolean
3843
default: true

instrumentation/vertx/vertx-http-client/vertx-http-client-4.0/metadata.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@ semantic_conventions:
66
library_link: https://vertx.io/
77
configurations:
88
- name: otel.instrumentation.http.known-methods
9+
declarative_name: java.common.http.known_methods
910
description: >
1011
Configures the instrumentation to recognize an alternative set of HTTP request methods. All
1112
other methods will be treated as `_OTHER`.
1213
type: list
1314
default: "CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE"
1415
- name: otel.instrumentation.http.client.capture-request-headers
16+
declarative_name: general.http.client.request_captured_headers
1517
description: List of HTTP request headers to capture in HTTP client telemetry.
1618
type: list
1719
default: ""
1820
- name: otel.instrumentation.http.client.capture-response-headers
21+
declarative_name: general.http.client.response_captured_headers
1922
description: List of HTTP response headers to capture in HTTP client telemetry.
2023
type: list
2124
default: ""
@@ -24,13 +27,15 @@ configurations:
2427
type: map
2528
default: ""
2629
- name: otel.instrumentation.http.client.emit-experimental-telemetry
30+
declarative_name: java.common.http.client.emit_experimental_telemetry/development
2731
description: >
2832
Enable the capture of experimental HTTP client telemetry. Adds the `http.request.body.size`
2933
and `http.response.body.size` attributes to spans, and records `http.client.request.size` and
3034
`http.client.response.size` metrics.
3135
type: boolean
3236
default: false
3337
- name: otel.instrumentation.http.client.experimental.redact-query-parameters
38+
declarative_name: java.common.http.client.redact_query_parameters/development
3439
description: Redact sensitive URL parameters. See https://opentelemetry.io/docs/specs/semconv/http/http-spans.
3540
type: boolean
36-
default: true
41+
default: true

instrumentation/vertx/vertx-http-client/vertx-http-client-5.0/metadata.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@ semantic_conventions:
77
library_link: https://vertx.io/docs/vertx-core/java/
88
configurations:
99
- name: otel.instrumentation.http.known-methods
10+
declarative_name: java.common.http.known_methods
1011
description: >
1112
Configures the instrumentation to recognize an alternative set of HTTP request methods. All
1213
other methods will be treated as `_OTHER`.
1314
type: list
1415
default: "CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE"
1516
- name: otel.instrumentation.http.client.capture-request-headers
17+
declarative_name: general.http.client.request_captured_headers
1618
description: List of HTTP request headers to capture in HTTP client telemetry.
1719
type: list
1820
default: ""
1921
- name: otel.instrumentation.http.client.capture-response-headers
22+
declarative_name: general.http.client.response_captured_headers
2023
description: List of HTTP response headers to capture in HTTP client telemetry.
2124
type: list
2225
default: ""
@@ -32,6 +35,7 @@ configurations:
3235
type: boolean
3336
default: false
3437
- name: otel.instrumentation.http.client.experimental.redact-query-parameters
38+
declarative_name: java.common.http.client.redact_query_parameters/development
3539
description: Redact sensitive URL parameters. See https://opentelemetry.io/docs/specs/semconv/http/http-spans.
3640
type: boolean
37-
default: true
41+
default: true

instrumentation/vertx/vertx-kafka-client-3.6/metadata.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@ disabled_by_default: true
99
classification: library
1010
configurations:
1111
- name: otel.instrumentation.kafka.producer-propagation.enabled
12+
declarative_name: java.kafka.producer_propagation.enabled
1213
description: Enable context propagation for Kafka message producers.
1314
type: boolean
1415
default: true
1516
- name: otel.instrumentation.kafka.experimental-span-attributes
17+
declarative_name: java.kafka.experimental_span_attributes/development
1618
description: Enables the capture of the experimental consumer attribute `kafka.record.queue_time_ms` and `messaging.kafka.bootstrap.servers`.
1719
type: boolean
1820
default: false
1921
- name: otel.instrumentation.messaging.experimental.capture-headers
22+
declarative_name: java.common.messaging.capture_headers/development
2023
description: A comma-separated list of header names to capture as span attributes.
2124
type: list
2225
default: ''
2326
- name: otel.instrumentation.messaging.experimental.receive-telemetry.enabled
27+
declarative_name: java.common.messaging.receive_telemetry/development.enabled
2428
description: >
2529
Enables experimental receive telemetry, which will cause consumers to start a new trace, with
2630
only a span link connecting it to the producer trace.

instrumentation/vertx/vertx-kafka-client-3.6/testing/src/main/java/io/opentelemetry/javaagent/instrumentation/vertx/kafka/AbstractBatchRecordsNoReceiveTelemetryVertxKafkaTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
public abstract class AbstractBatchRecordsNoReceiveTelemetryVertxKafkaTest
2929
extends AbstractVertxKafkaTest {
3030

31-
final CountDownLatch consumerReady = new CountDownLatch(1);
31+
private final CountDownLatch consumerReady = new CountDownLatch(1);
3232

3333
@BeforeAll
3434
void setUpTopicAndConsumer() {

instrumentation/vertx/vertx-kafka-client-3.6/testing/src/main/java/io/opentelemetry/javaagent/instrumentation/vertx/kafka/AbstractBatchRecordsVertxKafkaTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@TestMethodOrder(OrderAnnotation.class)
2828
public abstract class AbstractBatchRecordsVertxKafkaTest extends AbstractVertxKafkaTest {
2929

30-
final CountDownLatch consumerReady = new CountDownLatch(1);
30+
private final CountDownLatch consumerReady = new CountDownLatch(1);
3131

3232
@BeforeAll
3333
void setUpTopicAndConsumer() {

instrumentation/vertx/vertx-kafka-client-3.6/testing/src/main/java/io/opentelemetry/javaagent/instrumentation/vertx/kafka/AbstractSingleRecordNoReceiveTelemetryVertxKafkaTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
public abstract class AbstractSingleRecordNoReceiveTelemetryVertxKafkaTest
1919
extends AbstractVertxKafkaTest {
2020

21-
final CountDownLatch consumerReady = new CountDownLatch(1);
21+
private final CountDownLatch consumerReady = new CountDownLatch(1);
2222

2323
@BeforeAll
2424
void setUpTopicAndConsumer() {

instrumentation/vertx/vertx-kafka-client-3.6/testing/src/main/java/io/opentelemetry/javaagent/instrumentation/vertx/kafka/AbstractSingleRecordVertxKafkaTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
public abstract class AbstractSingleRecordVertxKafkaTest extends AbstractVertxKafkaTest {
2323

24-
final CountDownLatch consumerReady = new CountDownLatch(1);
24+
private final CountDownLatch consumerReady = new CountDownLatch(1);
2525

2626
@BeforeAll
2727
void setUpTopicAndConsumer() {

0 commit comments

Comments
 (0)