Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ogupte committed Jul 13, 2022
1 parent 432183b commit 45275a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export const fetchDurationPercentiles = async ({
},
},
};
console.log(JSON.stringify(params));
const response = await setup.apmEventClient.search(
'get_duration_percentiles',
params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ import {
import { ProcessorEvent } from '../../../../common/processor_event';

export function getDurationField(eventType: ProcessorEvent) {
if (eventType === ProcessorEvent.metric) {
return TRANSACTION_DURATION_HISTOGRAM;
switch (eventType) {
case ProcessorEvent.metric:
return TRANSACTION_DURATION_HISTOGRAM;
case ProcessorEvent.span:
return SPAN_DURATION;
default:
return TRANSACTION_DURATION;
}
if (eventType === ProcessorEvent.span) {
return SPAN_DURATION;
}
return TRANSACTION_DURATION;
}

0 comments on commit 45275a7

Please sign in to comment.