Skip to content

Commit ff91c28

Browse files
authored
Add descriptions and metadata for spring modules (#14309)
1 parent 3093a4f commit ff91c28

File tree

59 files changed

+1157
-55
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1157
-55
lines changed

docs/instrumentation-list.yaml

Lines changed: 698 additions & 7 deletions
Large diffs are not rendered by default.

instrumentation-docs/collect.sh

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,31 @@ readonly INSTRUMENTATIONS=(
9090
"apache-dubbo-2.7:javaagent:testDubbo"
9191
"finagle-http-23.11:javaagent:test"
9292
"finatra-2.9:javaagent:test"
93+
"spring:spring-batch-3.0:javaagent:test"
94+
"spring:spring-data:spring-data-1.8:javaagent:test"
95+
"spring:spring-integration-4.1:javaagent:test"
96+
"spring:spring-integration-4.1:javaagent:testWithRabbitInstrumentation"
97+
"spring:spring-integration-4.1:javaagent:testWithProducerInstrumentation"
98+
"spring:spring-jms:spring-jms-2.0:javaagent:test"
99+
"spring:spring-kafka-2.7:javaagent:test"
100+
"spring:spring-kafka-2.7:javaagent:testNoReceiveTelemetry"
101+
"spring:spring-pulsar-1.0:javaagent:test"
102+
"spring:spring-rabbit-1.0:javaagent:test"
103+
"spring:spring-rmi-4.0:javaagent:test"
104+
"spring:spring-scheduling-3.1:javaagent:test"
105+
"spring:spring-scheduling-3.1:javaagent:testExperimental"
106+
"spring:spring-web:spring-web-3.1:library:test"
107+
"spring:spring-web:spring-web-6.0:javaagent:test"
108+
"spring:spring-webflux:spring-webflux-5.0:javaagent:test"
109+
"spring:spring-webflux:spring-webflux-5.3:library:test"
110+
"spring:spring-webmvc:spring-webmvc-3.1:javaagent:test"
111+
"spring:spring-webmvc:spring-webmvc-3.1:javaagent:testExperimental"
112+
"spring:spring-webmvc:spring-webmvc-5.3:library:test"
113+
"spring:spring-webmvc:spring-webmvc-6.0:javaagent:test"
114+
"spring:spring-webmvc:spring-webmvc-3.1:javaagent:testExperimental"
115+
"spring:spring-webmvc:spring-webmvc-6.0:javaagent:test"
116+
"spring:spring-webmvc:spring-webmvc-6.0:javaagent:testExperimental"
117+
"openai:openai-java-1.1:javaagent:test"
93118
)
94119

95120
readonly COLIMA_INSTRUMENTATIONS=(
@@ -221,7 +246,7 @@ run_gradle_tasks() {
221246

222247
./gradlew "${tasks[@]}" \
223248
-PcollectMetadata=true \
224-
--rerun-tasks --continue
249+
--rerun-tasks --continue --no-parallel
225250
}
226251

227252
# Cleans any stray .telemetry directories left in the repo.

instrumentation-docs/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ In order to collect spans, add the `collectSpans` property (along with `collectM
2828
```kotlin
2929
tasks {
3030
test {
31-
systemProperty("collectMetadata", collectMetadata)
31+
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
3232
systemProperty("collectSpans", true)
3333
}
3434
}

instrumentation-docs/src/main/java/io/opentelemetry/instrumentation/docs/InstrumentationAnalyzer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
package io.opentelemetry.instrumentation.docs;
77

88
import com.fasterxml.jackson.core.JsonProcessingException;
9+
import com.fasterxml.jackson.databind.exc.MismatchedInputException;
910
import com.fasterxml.jackson.databind.exc.ValueInstantiationException;
1011
import io.opentelemetry.instrumentation.docs.internal.InstrumentationMetaData;
1112
import io.opentelemetry.instrumentation.docs.internal.InstrumentationModule;
@@ -76,7 +77,7 @@ private InstrumentationMetaData getMetadata(InstrumentationModule module)
7677
}
7778
try {
7879
return YamlHelper.metaDataParser(metadataFile);
79-
} catch (ValueInstantiationException e) {
80+
} catch (ValueInstantiationException | MismatchedInputException e) {
8081
logger.severe("Error parsing metadata file for " + module.getInstrumentationName());
8182
throw e;
8283
}

instrumentation-docs/src/main/java/io/opentelemetry/instrumentation/docs/parsers/SpanParser.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
public class SpanParser {
2525

2626
// We want to ignore test related attributes
27-
private static final List<String> EXCLUDED_ATTRIBUTES = List.of("x-test-", "test-baggage-");
27+
private static final List<String> EXCLUDED_ATTRIBUTES =
28+
List.of("x-test-", "test-baggage-", "test_message");
2829

2930
/**
3031
* Pull spans from the `.telemetry` directory, filter them by scope, and set them in the module.

instrumentation/aws-sdk/aws-sdk-1.11/metadata.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ configurations:
44
type: boolean
55
default: false
66
- name: otel.instrumentation.messaging.experimental.receive-telemetry.enabled
7-
description: Enables experimental receive telemetry for AWS SDK instrumentation.
7+
description: >
8+
Enables experimental receive telemetry, which will cause consumers to start a new trace, with
9+
only a span link connecting it to the producer trace.
810
type: boolean
911
default: false
1012
- name: otel.instrumentation.messaging.experimental.capture-headers

instrumentation/aws-sdk/aws-sdk-2.2/metadata.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
configurations:
22
- name: otel.instrumentation.messaging.experimental.receive-telemetry.enabled
3-
description: Enables experimental receive telemetry for AWS SDK instrumentation.
3+
description: >
4+
Enables experimental receive telemetry, which will cause consumers to start a new trace, with
5+
only a span link connecting it to the producer trace.
46
type: boolean
57
default: false
68
- name: otel.instrumentation.messaging.experimental.capture-headers
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
configurations:
22
- name: otel.instrumentation.common.experimental.view-telemetry.enabled
3-
description: Enables experimental view telemetry.
3+
description: Enables the creation of experimental view (INTERNAL) spans.
44
type: boolean
55
default: false
66
- name: otel.instrumentation.common.experimental.controller-telemetry.enabled
7-
description: Enables experimental controller telemetry.
7+
description: Enables the creation of experimental controller (INTERNAL) spans.
88
type: boolean
99
default: false

instrumentation/kafka/kafka-clients/kafka-clients-0.11/metadata.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ configurations:
1515
type: list
1616
default: ''
1717
- name: otel.instrumentation.messaging.experimental.receive-telemetry.enabled
18-
description: Enables experimental receive telemetry for Kafka instrumentation.
18+
description: >
19+
Enables experimental receive telemetry, which will cause consumers to start a new trace, with
20+
only a span link connecting it to the producer trace.
1921
type: boolean
2022
default: false

instrumentation/openai/openai-java-1.1/javaagent/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ tasks {
2525
withType<Test>().configureEach {
2626
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
2727
// TODO run tests both with and without genai message capture
28+
2829
systemProperty("otel.instrumentation.genai.capture-message-content", "true")
30+
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
31+
systemProperty("collectSpans", true)
2932
}
3033
}

0 commit comments

Comments
 (0)