Skip to content

Commit 9b635b1

Browse files
committed
fix(metrics): resolve linting errors
1 parent b77918f commit 9b635b1

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

packages/core/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ export { ServerRuntimeClient } from './server-runtime-client';
5555
export { initAndBind, setCurrentClient } from './sdk';
5656
export { createTransport } from './transports/base';
5757
export { makeOfflineTransport } from './transports/offline';
58-
export { makeMultiplexedTransport, MULTIPLEXED_TRANSPORT_EXTRA_KEY, MULTIPLEXED_METRIC_ROUTING_KEY } from './transports/multiplexed';
58+
export {
59+
makeMultiplexedTransport,
60+
MULTIPLEXED_TRANSPORT_EXTRA_KEY,
61+
MULTIPLEXED_METRIC_ROUTING_KEY,
62+
} from './transports/multiplexed';
5963
export { getIntegrationsToSetup, addIntegration, defineIntegration, installedIntegrations } from './integration';
6064
export {
6165
_INTERNAL_skipAiProviderWrapping,

packages/core/src/metrics/public-api.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,9 @@ export interface MetricOptions {
3939
*/
4040
function captureMetric(type: MetricType, name: string, value: number, options?: MetricOptions): void {
4141
const attributes = options?.routing
42-
? { ...options.attributes, [MULTIPLEXED_METRIC_ROUTING_KEY]: options.routing }
43-
: options?.attributes;
44-
_INTERNAL_captureMetric(
45-
{ type, name, value, unit: options?.unit, attributes },
46-
{ scope: options?.scope },
47-
);
42+
? { ...options.attributes, [MULTIPLEXED_METRIC_ROUTING_KEY]: options.routing }
43+
: options?.attributes;
44+
_INTERNAL_captureMetric({ type, name, value, unit: options?.unit, attributes }, { scope: options?.scope });
4845
}
4946

5047
/**

0 commit comments

Comments
 (0)