From b3131850850fc9416bf8d6fd76625414f4da1312 Mon Sep 17 00:00:00 2001 From: Ehsan Barooni <66495214+ebarooni@users.noreply.github.com> Date: Sun, 8 Dec 2024 00:09:01 +0100 Subject: [PATCH] feat(performance): add missing methods (#505) Update definitions. --- packages/performance/README.md | 12 ++++++------ packages/performance/src/definitions.ts | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/performance/README.md b/packages/performance/README.md index 2130df29..1e5f9e2b 100644 --- a/packages/performance/README.md +++ b/packages/performance/README.md @@ -359,9 +359,9 @@ Records a trace given its name and options. #### GetAttributesResult -| Prop | Type | Description | Since | -| ----------- | ------------------------------------- | ------------------------------------------------------------ | ----- | -| **`value`** | { [k: string]: string; } | A map of all custom attributes of a trace with their values. | 6.3.0 | +| Prop | Type | Description | Since | +| ------------ | ------------------------------------- | ------------------------------------------------------------ | ----- | +| **`result`** | { [k: string]: string; } | A map of all custom attributes of a trace with their values. | 6.3.0 | #### GetAttributesOptions @@ -382,9 +382,9 @@ Records a trace given its name and options. #### GetMetricResult -| Prop | Type | Description | Since | -| ----------- | --------------------------- | ---------------------------------------------------------- | ----- | -| **`value`** | number \| null | The value of the metric if exists. If not it will be null. | 6.3.0 | +| Prop | Type | Description | Since | +| ----------- | --------------------------- | ---------------------------------- | ----- | +| **`value`** | number \| null | The value of the metric if exists. | 6.3.0 | #### GetMetricOptions diff --git a/packages/performance/src/definitions.ts b/packages/performance/src/definitions.ts index 07d6261c..b043fb2f 100644 --- a/packages/performance/src/definitions.ts +++ b/packages/performance/src/definitions.ts @@ -209,7 +209,7 @@ export interface GetAttributesResult { * * @since 6.3.0 */ - value: { [k: string]: string }; + result: { [k: string]: string }; } export type RemoveAttributeOptions = GetAttributeOptions; @@ -253,7 +253,7 @@ export interface GetMetricOptions { export interface GetMetricResult { /** - * The value of the metric if exists. If not it will be null. + * The value of the metric if exists. * * @since 6.3.0 */