|
5 | 5 |
|
6 | 6 | package io.opentelemetry.instrumentation.docs; |
7 | 7 |
|
| 8 | +import static java.util.Collections.emptyList; |
8 | 9 | import static org.assertj.core.api.Assertions.assertThat; |
9 | 10 |
|
10 | 11 | import com.fasterxml.jackson.core.JsonProcessingException; |
@@ -142,40 +143,11 @@ void testEmptyAdditionalTelemetry() throws JsonProcessingException { |
142 | 143 |
|
143 | 144 | InstrumentationMetadata actualMetadata = YamlHelper.metaDataParser(yamlContent); |
144 | 145 |
|
145 | | - ManualTelemetryEntry defaultEntry = |
146 | | - new ManualTelemetryEntry( |
147 | | - "default", |
148 | | - List.of( |
149 | | - new ManualTelemetryEntry.ManualMetric( |
150 | | - "system.disk.io", |
151 | | - "System disk IO", |
152 | | - "LONG_SUM", |
153 | | - "By", |
154 | | - List.of( |
155 | | - new TelemetryAttribute("device", "STRING"), |
156 | | - new TelemetryAttribute("direction", "STRING")))), |
157 | | - List.of( |
158 | | - new ManualTelemetryEntry.ManualSpan( |
159 | | - "CLIENT", List.of(new TelemetryAttribute("custom.operation", "STRING"))))); |
160 | | - |
161 | | - ManualTelemetryEntry experimentalEntry = |
162 | | - new ManualTelemetryEntry( |
163 | | - "experimental", |
164 | | - List.of( |
165 | | - new ManualTelemetryEntry.ManualMetric( |
166 | | - "experimental.feature.usage", |
167 | | - "Usage of experimental features", |
168 | | - "HISTOGRAM", |
169 | | - "s", |
170 | | - List.of(new TelemetryAttribute("feature.name", "STRING")))), |
171 | | - List.of()); |
172 | | - |
173 | 146 | InstrumentationMetadata expectedMetadata = |
174 | 147 | new InstrumentationMetadata.Builder() |
175 | | - .description("Example instrumentation with manual telemetry documentation") |
176 | | - .libraryLink("https://example.com/library") |
| 148 | + .description("Example without manual telemetry") |
177 | 149 | .semanticConventions(List.of(SemanticConvention.HTTP_CLIENT_SPANS)) |
178 | | - .additionalTelemetry(List.of(defaultEntry, experimentalEntry)) |
| 150 | + .additionalTelemetry(emptyList()) |
179 | 151 | .overrideTelemetry(false) |
180 | 152 | .build(); |
181 | 153 |
|
|
0 commit comments