Telemetry
Wayfinder can optionally emit OpenTelemetry spans for every request. By default, telemetry is disabled. You can control this behavior with the telemetry option.
import { createWayfinderClient } from '@ar.io/wayfinder-core';
const wayfinder = createWayfinderClient({
// other settings...
telemetrySettings: {
enabled: true,
sampleRate: 0.1, // 10% sampling
exporterUrl: 'https://your-otel-exporter',
clientName: 'my-app',
clientVersion: '1.0.0',
},
});How is this guide?