Skip to content

Commit

Permalink
Add downstream package name to Sentry tags (#2424)
Browse files Browse the repository at this point in the history
Add downstream package name to Sentry tags

With the rise of pull-from-upstream usage it can be useful to have related Sentry events tagged with downstream package name (which can often be different from the upstream repository name).

Reviewed-by: Laura Barcziová
  • Loading branch information
softwarefactory-project-zuul[bot] committed May 10, 2024
2 parents 9c7b13d + 94eda31 commit d95578f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packit_service/worker/handlers/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ def get_tag_info(self) -> dict:
"namespace": self.project.namespace,
}
)
if "package_name" in self.data.event_dict:
tags.update({"package_name": self.data.event_dict["package_name"]})
return tags

def run_n_clean(self) -> TaskResults:
Expand Down

0 comments on commit d95578f

Please sign in to comment.