7 ms·
You can prove that code is referred to by other code in the same project. However, you can't prove if your exposed API is being used. For example, let's say you
by choward 9y ago
You can prove that code is referred to by other code in the same project. However, you can't prove if your exposed API is being used. For example, let's say you have an HTTP API endpoint and you're not sure if your front end is using it.
- deleted 9y ago[deleted]
- reificator 9y agoThen my first step would be to check the logs, or start logging if there are none currently. You get a nice structured logging format set up, log every request, and feed that into something you can graph and query. Leave that on long enough (long enough being a length of time that depends on what the endpoint does and how critical it is, as well as how much traffic you see regularly) and you can figure out what's being used pretty quickly.