observation: add Logger.AddCallerSkip
Created by: bobheadxi
Adds a caller skip to TraceLogger.Log
, which calls the logger on behalf of the caller of Log
, and similarly with emitErrorLogs
. Also makes some tweaks to ensure emitErrorLogs
is logged with the trace context.
Test plan
sg start
main-dry-run: https://buildkite.com/sourcegraph/sourcegraph/builds/144671