Skip to content

Commit

Permalink
Renamed the API
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Kondaka <[email protected]>
  • Loading branch information
Krishna Kondaka committed Nov 8, 2023
1 parent dcab048 commit dc1cc77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public List<Span> parseExportTraceServiceRequest(final ExportTraceServiceRequest
.flatMap(rs -> parseResourceSpans(rs).stream()).collect(Collectors.toList());
}

public Map<String, ExportTraceServiceRequest> splitExportTraceServiceRequest(final ExportTraceServiceRequest exportTraceServiceRequest) {
public Map<String, ExportTraceServiceRequest> splitExportTraceServiceRequestByTraceId(final ExportTraceServiceRequest exportTraceServiceRequest) {
Map<String, ExportTraceServiceRequest> result = new HashMap<>();
for (final ResourceSpans resourceSpans: exportTraceServiceRequest.getResourceSpansList()) {
Map<String, ResourceSpans> out = splitResourceSpans(resourceSpans);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class OTelProtoDecoderTest {
@Test
public void testSplitExportTraceServiceRequestWithMultipleTraces() throws Exception {
final ExportTraceServiceRequest exportTraceServiceRequest = buildExportTraceServiceRequestFromJsonFile(TEST_REQUEST_MULTIPLE_TRACES_FILE);
final Map<String, ExportTraceServiceRequest> map = decoderUnderTest.splitExportTraceServiceRequest(exportTraceServiceRequest);
final Map<String, ExportTraceServiceRequest> map = decoderUnderTest.splitExportTraceServiceRequestByTraceId(exportTraceServiceRequest);
assertThat(map.size(), is(equalTo(3)));
for (Map.Entry<String, ExportTraceServiceRequest> entry: map.entrySet()) {
String expectedTraceId = new String(Hex.decodeHex(entry.getKey()), StandardCharsets.UTF_8);
Expand Down

0 comments on commit dc1cc77

Please sign in to comment.