File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/sentry/autopilot/tasks Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -212,10 +212,18 @@ def run_trace_instrumentation_detector_for_project_task(
212212 organization = Organization .objects .get (id = organization_id )
213213 project = Project .objects .get (id = project_id , status = ObjectStatus .ACTIVE )
214214 except (Organization .DoesNotExist , Project .DoesNotExist ):
215+ logger .exception (
216+ "trace_instrumentation_detector.entity_not_found" ,
217+ extra = {"organization_id" : organization_id , "project_id" : project_id },
218+ )
215219 return None
216220
217221 trace_metadata = sample_trace_for_instrumentation_analysis (project )
218222 if not trace_metadata :
223+ logger .warning (
224+ "trace_instrumentation_detector.no_trace_sampled" ,
225+ extra = {"organization_id" : organization .id , "project_id" : project .id },
226+ )
219227 return None
220228
221229 trace_id = trace_metadata .trace_id
You can’t perform that action at this time.
0 commit comments