Search backend: add more consistent tracing for job fields
Created by: camdencheek
Tracing on jobs has been at least partially unified in observe.go. This uses the job name and wraps the stream to provide a trace log on every stream event.
Currently though, most jobs do not add their fields to the traces. This makes debugging more difficult than it could be since the arguments the jobs are executing with are not visible in the traces. The only job that currently adds its fields is CommitSearch.
I think the nicest way to handle this would be to add a Fields()
method to all search jobs, then make that part of the job interface so that we can add them to the trace automatically in job.StartSpan.