To ensure your custom interceptor is used you need to provide it in your application specifically the main.ts file.
main.ts
Here is what it looks like:
providers: [ provideHttpClient( withInterceptors([customInterceptor]) ) ]