Skip to content

logService: feat: migrate ITracer to ILogger interface#3127

Merged
ulugbekna merged 4 commits intomainfrom
ulugbekna/nuclear-cockroach
Jan 26, 2026
Merged

logService: feat: migrate ITracer to ILogger interface#3127
ulugbekna merged 4 commits intomainfrom
ulugbekna/nuclear-cockroach

Conversation

@ulugbekna
Copy link
Contributor

  • logService: feat: migrate ITracer to ILogger interface
  • tracing: migrate off of ITracer in favor of ILogService

Replace deprecated ITracer interface with ILogger across inline edits
and xtab providers. Add LogTarget.fromCallback() and withExtraTarget()
to ILogger for callback-based logging support previously provided by
ITracer's sub() method.
Copilot AI review requested due to automatic review settings January 23, 2026 17:52
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 23, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates the codebase off the deprecated ITracer API and onto the ILogService/ILogger logging interfaces, introducing an “extra target” mechanism for routing logs to additional sinks.

Changes:

  • Removed src/util/common/tracing.ts (ITracer/Tracer/createTracer) and updated call sites to use ILogger.createSubLogger(...).
  • Extended ILogger with withExtraTarget(...) and added LogTarget.fromCallback(...) for easy target creation.
  • Updated a broad set of inline edits / xtab / diagnostics components and tests to use the new logging interface.

Reviewed changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/util/common/tracing.ts Removes legacy tracer implementation and types.
src/platform/log/common/logService.ts Adds ILogger.withExtraTarget, LogTarget.fromCallback, and implementation support.
src/platform/log/test/common/subLogger.spec.ts Adds unit coverage for withExtraTarget and LogTarget.fromCallback.
src/platform/testing/common/testLogService.ts Updates test log service to implement withExtraTarget.
src/platform/inlineEdits/common/statelessNextEditProvider.ts Replaces ITracer parameter with ILogger in provider API.
src/platform/inlineEdits/node/inlineEditsModelService.ts Migrates internal tracing to ILogger sub-loggers.
src/extension/inlineEdits/vscode-node/jointInlineCompletionProvider.ts Migrates tracing calls to ILogger and uses sub-loggers.
src/extension/inlineEdits/node/nextEditProvider.ts Replaces tracer usage with ILogger and adds extra-target logging into request log context.
src/extension/inlineEdits/node/nextEditCache.ts Updates cache tracing/rebase logging to use ILogger.
src/extension/inlineEdits/common/rejectionCollector.ts Changes ctor to accept ILogService and uses ILogger sub-logger.
src/extension/inlineEdits/common/editRebase.ts Updates rebase and consistency logging to use ILogger.
src/extension/inlineEdits/vscode-node/features/* Migrates diagnostics providers/processors from ITracer to ILogger.
src/extension/xtab/node/xtabProvider.ts Updates provider signatures to accept ILogger and replaces tracer sub-sections with sub-loggers.
src/extension/xtab/node/xtabNextCursorPredictor.ts Replaces ITracer with ILogger and uses sub-loggers.
src//test//*.spec.ts Updates test mocks/stubs for new ILogger surface.
src/extension/inlineEdits/node/serverPoweredInlineEditProvider.ts Updates provider signature to accept ILogger.

hediet
hediet previously approved these changes Jan 23, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
roblourens
roblourens previously approved these changes Jan 25, 2026
@ulugbekna ulugbekna added this pull request to the merge queue Jan 26, 2026
Merged via the queue into main with commit 25eb487 Jan 26, 2026
19 checks passed
@ulugbekna ulugbekna deleted the ulugbekna/nuclear-cockroach branch January 26, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants