# RealtimeDiagnosticAttachment
Source: https://docs.maelstrom-ai.co/0.2/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:21

Inputs shared by every framework’s realtime diagnostic attachment.

## Properties

### adapter

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

Defined in: packages/realtime/src/lib/diagnostics.ts:25

Existing adapter supplying optional provider diagnostics and transport facts.

* * *

### identity

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

Defined in: packages/realtime/src/lib/diagnostics.ts:42

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/0.2/reference/realtime/classes/realtimesession/)

Defined in: packages/realtime/src/lib/diagnostics.ts:23

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:27

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`
