Skip to content

Commit

Permalink
Make some tabs adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-rr committed Apr 30, 2024
1 parent c21d791 commit 552c92a
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@ Contains all the functions needed to record the different metrics we collect, li
}
```
Example where this function is used:

```ts
async init(): Promise<void> {
await super.init();
const commandName : string = this.id || '';
await this.recordActionInvoked(commandName, this.metricsMetadata);
}
async init(): Promise<void> {
await super.init();
const commandName : string = this.id || '';
await this.recordActionInvoked(commandName, this.metricsMetadata);
}
```

- `asyncapi_adoption.action.finished`:
Expand All @@ -50,13 +49,12 @@ Contains all the functions needed to record the different metrics we collect, li
}
```
Example where this function is used:

```ts
async finally(error: Error | undefined): Promise<any> {
await super.finally(error);
this.metricsMetadata['success'] = error === undefined;
await this.recordActionFinished(this.id as string, this.metricsMetadata, this.specFile?.text());
}
async finally(error: Error | undefined): Promise<any> {
await super.finally(error);
this.metricsMetadata['success'] = error === undefined;
await this.recordActionFinished(this.id as string, this.metricsMetadata, this.specFile?.text());
}
```

Utils exposed by the library to operate mainly with the `Sink` interface and the metadata retrieved from the asyncapi files:
Expand Down

0 comments on commit 552c92a

Please sign in to comment.