# RealtimeDiagnosticAttachment
Source: https://docs.maelstrom-ai.co/dev/reference/realtime/interfaces/realtimediagnosticattachment/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

Defined in: [packages/realtime/src/lib/diagnostics.ts:22](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/realtime/src/lib/diagnostics.ts#L22)

Inputs shared by every framework’s realtime diagnostic attachment.

## Properties

### adapter

> `readonly` **adapter**: [`RealtimeProviderAdapter`](https://docs.maelstrom-ai.co/dev/reference/realtime/interfaces/realtimeprovideradapter/)

Defined in: [packages/realtime/src/lib/diagnostics.ts:26](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/realtime/src/lib/diagnostics.ts#L26)

Existing adapter supplying optional provider diagnostics and transport facts.

* * *

### identity

> `readonly` **identity**: `object`

Defined in: [packages/realtime/src/lib/diagnostics.ts:43](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/realtime/src/lib/diagnostics.ts#L43)

Immutable identity for this provider lifetime.

#### provider

> `readonly` **provider**: `string`

Application-owned provider label.

#### providerInstanceId

> `readonly` **providerInstanceId**: `string`

Unique identity of this built session, independent of application session identity.

* * *

### session

> `readonly` **session**: [`RealtimeSession`](https://docs.maelstrom-ai.co/dev/reference/realtime/classes/realtimesession/)

Defined in: [packages/realtime/src/lib/diagnostics.ts:24](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/realtime/src/lib/diagnostics.ts#L24)

Existing session; attachment never connects it or acquires media.

* * *

### sink

> `readonly` **sink**: `Pick`<`DiagnosticChannel`, `"observed"` | `"addSource"`\> &amp; `object` &amp; `Partial`<`Pick`<`DiagnosticChannel`, `"diagnosticsObserved"` | `"addDiagnosticSource"` | `"emitDiagnostic"`\>>

Defined in: [packages/realtime/src/lib/diagnostics.ts:28](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/realtime/src/lib/diagnostics.ts#L28)

Owning client observation seam; no DevTools or framework dependency is needed.

#### Type Declaration

##### emit()

> **emit**(`kind`, `metadata?`, `readContent?`, `requestId?`): `void`

Legacy diagnostic delivery accepts projected or imported evidence.

###### Parameters

###### kind

`string`

###### metadata?

`Readonly`<`Record`<`string`, `string` | `number` | `boolean` | `null` | `undefined`\>>

###### readContent?

() => `unknown`

###### requestId?

`string`

###### Returns

`void`
