Skip to main content

TelemetryContext

@forge/monorepo


@forge/monorepo / backend/src / TelemetryContext

Type Alias: TelemetryContext

TelemetryContext = object

Defined in: backend/src/telemetry/index.ts:40

The identifiers on every log line and every span — AC-4.

Every field is an id. That is the point: this type is what a caller is allowed to correlate on, and it contains no room for content. A telemetry context that carried a message or a prompt would be the redaction hole, and it would be added by someone who needed one line of context in one incident.

Properties

conversationId?

readonly optional conversationId?: string

Defined in: backend/src/telemetry/index.ts:42


principalId?

readonly optional principalId?: string

Defined in: backend/src/telemetry/index.ts:44


requestId?

readonly optional requestId?: string

Defined in: backend/src/telemetry/index.ts:46

The inbound request, so a trace can be tied back to an access log entry.


runId?

readonly optional runId?: string

Defined in: backend/src/telemetry/index.ts:43


tenantId

readonly tenantId: string

Defined in: backend/src/telemetry/index.ts:41