Closed sarah-witt closed 10 months ago
Looks good overall!
small nit: it would be good to have add a sort of eventName
attribute to the classes in order to have something like DatadogUtilities.shouldSendEvent(this.eventName)
.
small nit: it would be good to have add a sort of eventName attribute to the classes in order to have something like DatadogUtilities.shouldSendEvent(this.eventName).
@NouemanKHAL Good point, we thought about this but then decided it was better to be able to check the event name before creating the event. What do you think of creating static variable for event name in the classes and that way we can still have the property tied to the class but not need to create an instance first? Also while investigating this I found a bug with the shouldSendEvent logic so I fixed that!
@sarah-witt Great! And yes making it static
would be perfect 👌
What does this PR do?
continuing https://github.com/jenkinsci/datadog-plugin/pull/353 to support filtering events by event name in addition to filtering by category
Description of the Change
Alternate Designs
Possible Drawbacks
Verification Process
Additional Notes
Release Notes
Review checklist (to be filled by reviewers)
changelog/
label attached. If applicable it should have thebackward-incompatible
label attached.do-not-merge/
label attached.kind/
andseverity/
labels attached at least.