Add tracing to antivirus.

This PR adds tracing to the Antivirus service.
This commit is contained in:
Daniël Franke
2023-08-21 12:04:54 +02:00
parent 251a50dbd4
commit 8b5687e811
7 changed files with 124 additions and 60 deletions

View File

@@ -55,6 +55,8 @@ func (pps *PostprocessingService) Run() error {
err error
)
ctx = e.GetTraceContext(ctx)
switch ev := e.Event.(type) {
case events.BytesReceived:
pp = postprocessing.New(ev.UploadID, ev.URL, ev.ExecutingUser, ev.Filename, ev.Filesize, ev.ResourceID, pps.steps, pps.c.Delayprocessing)