EcosystemTooling
Sentry
Connect Fabric runtime tracing and errors to Sentry.
Run fh add sentry to install the current Node SDK and generate a managed redacted event observer and test. Initialize Sentry before the Fabric runtime and attach stable job, agent, session, submission, and tenant-safe correlation fields.
import * as Sentry from '@sentry/node';
import { createObservabilityObserver } from '@fabric-harness/sdk';
const onEvent = createObservabilityObserver({
integration: 'sentry',
correlation: { agentId: 'support', jobId: runId, submissionId, tenantId },
send(record) {
Sentry.addBreadcrumb({ category: 'fabric', message: record.event.type, data: record.correlation });
},
});Exclude secrets, prompts, tool arguments/results, and customer data unless an explicit scrubbed capture policy permits them. Flush Sentry during graceful shutdown.