Skip to content

Commit

Permalink
feat(performance): add missing methods (#505)
Browse files Browse the repository at this point in the history
Update definitions.
  • Loading branch information
ebarooni committed Dec 7, 2024
1 parent a3c5cd3 commit b313185
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions packages/performance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ Records a trace given its name and options.

#### GetAttributesResult

| Prop | Type | Description | Since |
| ----------- | ------------------------------------- | ------------------------------------------------------------ | ----- |
| **`value`** | <code>{ [k: string]: string; }</code> | A map of all custom attributes of a trace with their values. | 6.3.0 |
| Prop | Type | Description | Since |
| ------------ | ------------------------------------- | ------------------------------------------------------------ | ----- |
| **`result`** | <code>{ [k: string]: string; }</code> | A map of all custom attributes of a trace with their values. | 6.3.0 |


#### GetAttributesOptions
Expand All @@ -382,9 +382,9 @@ Records a trace given its name and options.

#### GetMetricResult

| Prop | Type | Description | Since |
| ----------- | --------------------------- | ---------------------------------------------------------- | ----- |
| **`value`** | <code>number \| null</code> | The value of the metric if exists. If not it will be null. | 6.3.0 |
| Prop | Type | Description | Since |
| ----------- | --------------------------- | ---------------------------------- | ----- |
| **`value`** | <code>number \| null</code> | The value of the metric if exists. | 6.3.0 |


#### GetMetricOptions
Expand Down
4 changes: 2 additions & 2 deletions packages/performance/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export interface GetAttributesResult {
*
* @since 6.3.0
*/
value: { [k: string]: string };
result: { [k: string]: string };
}

export type RemoveAttributeOptions = GetAttributeOptions;
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit b313185

Please sign in to comment.