Log service arguments automatically

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Because we have Sidekiq logging enabled on GitLab.com, we can see the arguments passed to Sidekiq workers. A lot of the time, this maps to a service object which does the work.

However, this doesn't happen all of the time, and some services are called in different ways. Either they are called from the controller directly, or in a Sidekiq process but from within another service, with additional arguments constructed.

I think we should log what our services are doing better to avoid problems like https://gitlab.com/gitlab-org/gitlab-ce/issues/30180. A nice first step would be to have something (either in BaseService or a module) that can log arguments to initialize and execute automatically. This might be tricky for the same reasons as https://gitlab.com/gitlab-org/gitlab-ee/issues/1819, but it would be good if we got this 'for free' when writing a service.

Edited Jun 16, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading