Logs captures information at specific points in the program. Usually this takes the form of messages, warnings or errors.

Link to original

Traces provide information about the route a request follows through your code. This shows what parts of the program is used and is often accompanied with logs or parameters.

Link to original

You could argue that logs and traces are momentary captures of information to understand your program and being able to debug it. A trace differs that this is a ‘sequences of logs’ and is most useful to know the route a certain request travels through your code.

References

What is the difference between a log and a trace exactly?

Microsoft: Log vs metric vs traces