From d2a17169b6c28f4ced149f16246015a8c4ae5cc8 Mon Sep 17 00:00:00 2001 From: Shane Brunson Date: Fri, 18 Aug 2023 13:25:58 -0500 Subject: [PATCH] feat: used mixed for JSON-able types --- src/logger.js | 1 - src/types.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/logger.js b/src/logger.js index 41e25aa..ed0c310 100644 --- a/src/logger.js +++ b/src/logger.js @@ -273,7 +273,6 @@ export function Logger({ print( LOG_LEVEL.DEBUG, `metric.${metricPayload.metricNamespace}`, - // $FlowIssue difference between Payload and metric dimensions metricPayload.dimensions || {} ); diff --git a/src/types.js b/src/types.js index da9cbad..30844ec 100644 --- a/src/types.js +++ b/src/types.js @@ -1,6 +1,6 @@ /* @flow */ -export type Payload = { [string]: string | boolean | null | void }; +export type Payload = { [string]: mixed }; export type MetricPayload = {| metricNamespace: string, // the name of the metric that's used for charting / finding in signalFx @@ -12,5 +12,5 @@ export type MetricPayload = {| * - https://engineering.paypalcorp.com/confluence/pages/viewpage.action?pageId=981633893 * - https://engineering.paypalcorp.com/confluence/display/Checkout/Checkout+Observability+Overview */ - dimensions?: { [string]: string }, + dimensions?: { [string]: mixed }, |};