Create an instrumented fetch function that automatically:
const fetch = tracedFetch();// Use like regular fetch - tracing happens automaticallyconst response = await fetch('https://api.example.com/users'); Copy
const fetch = tracedFetch();// Use like regular fetch - tracing happens automaticallyconst response = await fetch('https://api.example.com/users');
// Skip tracing for specific requestsconst fetch = tracedFetch();const response = await fetch('https://api.example.com/health', {}, { skipTracing: true }); Copy
// Skip tracing for specific requestsconst fetch = tracedFetch();const response = await fetch('https://api.example.com/health', {}, { skipTracing: true });
Create an instrumented fetch function that automatically: