> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# RecordingTracer

> Interface exported by @botmesh/core/testing.

Defined in: [testing/recordingTracer.ts:71](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/recordingTracer.ts#L71)

What [createRecordingTracer](https://botmesh.afaya.com.co/api/core/testing/functions/createRecordingTracer.md) returns.

## Properties

### tracer

```ts theme={null}
readonly tracer: BotTracer;
```

Defined in: [testing/recordingTracer.ts:72](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/recordingTracer.ts#L72)

***

### spans

```ts theme={null}
readonly spans: RecordedSpan[];
```

Defined in: [testing/recordingTracer.ts:74](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/recordingTracer.ts#L74)

Every span started so far, in start order.

## Methods

### find()

```ts theme={null}
find(name, pred?): RecordedSpan | undefined;
```

Defined in: [testing/recordingTracer.ts:76](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/recordingTracer.ts#L76)

First span named `name` (matching `pred` when given).

#### Parameters

| Parameter | Type |
| - | - |
| `name` | `string` |
| `pred?` | (`span`) => `boolean` |

#### Returns

[`RecordedSpan`](https://botmesh.afaya.com.co/api/core/testing/interfaces/RecordedSpan) | `undefined`

***

### findAll()

```ts theme={null}
findAll(name): RecordedSpan[];
```

Defined in: [testing/recordingTracer.ts:78](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/recordingTracer.ts#L78)

Every span named `name`.

#### Parameters

| Parameter | Type |
| - | - |
| `name` | `string` |

#### Returns

[`RecordedSpan`](https://botmesh.afaya.com.co/api/core/testing/interfaces/RecordedSpan)\[]

***

### parentOf()

```ts theme={null}
parentOf(span): RecordedSpan | undefined;
```

Defined in: [testing/recordingTracer.ts:79](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/recordingTracer.ts#L79)

#### Parameters

| Parameter | Type |
| - | - |
| `span` | [`RecordedSpan`](https://botmesh.afaya.com.co/api/core/testing/interfaces/RecordedSpan) |

#### Returns

[`RecordedSpan`](https://botmesh.afaya.com.co/api/core/testing/interfaces/RecordedSpan) | `undefined`

***

### childrenOf()

```ts theme={null}
childrenOf(span): RecordedSpan[];
```

Defined in: [testing/recordingTracer.ts:80](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/recordingTracer.ts#L80)

#### Parameters

| Parameter | Type |
| - | - |
| `span` | [`RecordedSpan`](https://botmesh.afaya.com.co/api/core/testing/interfaces/RecordedSpan) |

#### Returns

[`RecordedSpan`](https://botmesh.afaya.com.co/api/core/testing/interfaces/RecordedSpan)\[]

***

### allValues()

```ts theme={null}
allValues(): string[];
```

Defined in: [testing/recordingTracer.ts:82](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/recordingTracer.ts#L82)

Every attribute value and event attribute value as strings (for "no PII" scans).

#### Returns

`string`\[]

***

### reset()

```ts theme={null}
reset(): void;
```

Defined in: [testing/recordingTracer.ts:83](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/recordingTracer.ts#L83)

#### Returns

`void`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.