Skip to content

Commit

Permalink
Remove todos
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Longo <tomas.longo@sap.com>
  • Loading branch information
Tomas Longo committed Feb 13, 2025
1 parent a1c3d6c commit 77feae9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,6 @@ public void testParseExportTraceServiceRequest() throws IOException {
validateSpans(spans);
}

@Test
// TODO tlongo is this test still relevant?
public void testParseExportTraceServiceRequest_ScopeSpansTakesPrecedenceOverInstrumentationLibrarySpans() throws IOException {
final ExportTraceServiceRequest exportTraceServiceRequest = buildExportTraceServiceRequestFromJsonFile(TEST_REQUEST_BOTH_SPAN_TYPES_JSON_FILE);
final List<Span> spans = decoderUnderTest.parseExportTraceServiceRequest(exportTraceServiceRequest, Instant.now());
validateSpans(spans);
}

@Test
public void testParseExportTraceServiceRequest_NoSpans() throws IOException {
final ExportTraceServiceRequest exportTraceServiceRequest = buildExportTraceServiceRequestFromJsonFile(TEST_REQUEST_NO_SPANS_JSON_FILE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ private void processRequest(final ExportTraceServiceRequest request, final Strea
try {
if (buffer.isByteBuffer()) {
Map<String, ExportTraceServiceRequest> requestsMap = oTelProtoDecoder.splitExportTraceServiceRequestByTraceId(request);
// TODO tlongo remove
ExportTraceServiceRequest tmp;
for (Map.Entry<String, ExportTraceServiceRequest> entry: requestsMap.entrySet()) {
buffer.writeBytes(entry.getValue().toByteArray(), entry.getKey(), bufferWriteTimeoutInMillis);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ private List<Map<String, Object>> getExpectedDocuments(ExportTraceServiceRequest
for(int i=0; i<exportTraceServiceRequests.length; i++) {
exportTraceServiceRequests[i].getResourceSpansList().forEach( resourceSpans -> {
final String resourceName = getServiceName(resourceSpans);
resourceSpans.getScopeSpansList().forEach( instrumentationLibrarySpans -> {
instrumentationLibrarySpans.getSpansList().forEach(span -> {
resourceSpans.getScopeSpansList().forEach( scopeSpans -> {
scopeSpans.getSpansList().forEach(span -> {
expectedDocuments.add(getExpectedEsDocumentSource(span, resourceName));
});
});
Expand Down

0 comments on commit 77feae9

Please sign in to comment.