Skip to content

Commit

Permalink
Run format
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanatkinson committed Nov 26, 2024
1 parent 2ba056e commit 865da93
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/performance/src/services/oob_resources_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import {
CLSMetricWithAttribution,
INPMetricWithAttribution,
LCPMetricWithAttribution,
LCPMetricWithAttribution
} from 'web-vitals/attribution';

import { TRACE_MEASURE_PREFIX } from '../constants';
Expand Down
2 changes: 1 addition & 1 deletion packages/performance/src/services/perf_logger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ describe('Performance Monitoring > perf_logger', () => {
{
lcp: { value: 3.999, elementAttribution: 'lcp-element' },
inp: { value: 0.1, elementAttribution: 'inp-element' },
cls: { value: 0.250, elementAttribution: 'cls-element' },
cls: { value: 0.25, elementAttribution: 'cls-element' }
},
90
);
Expand Down
7 changes: 5 additions & 2 deletions packages/performance/src/services/perf_logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ interface TraceMetric {
}

interface Logger {
send: (resource: NetworkRequest | Trace, resourceType: ResourceType) => void | undefined;
send: (
resource: NetworkRequest | Trace,
resourceType: ResourceType
) => void | undefined;
flush: () => void;
}

Expand All @@ -99,7 +102,7 @@ function sendLog(
if (!logger) {
logger = {
send: transportHandler(serializer),
flush: flushQueuedEvents,
flush: flushQueuedEvents
};
}
logger.send(resource, resourceType);
Expand Down

0 comments on commit 865da93

Please sign in to comment.