Skip to content

Conversation

@hannahramadan
Copy link
Contributor

@hannahramadan hannahramadan commented Nov 7, 2025

The NewRelic::Agent#record_custom_event API will now raise an ArgumentError on an invalid event_type.

A valid event_type must consist of only alphanumeric characters, _, :, or .

closes #3126

@hannahramadan hannahramadan marked this pull request as ready for review November 7, 2025 20:04
@hannahramadan hannahramadan requested a review from a team as a code owner November 7, 2025 20:04
@hannahramadan hannahramadan changed the title Validate record_custom_event type Validate record_custom_event type Nov 7, 2025
@hannahramadan hannahramadan changed the base branch from dev to v10_0_0 November 7, 2025 20:20
@github-actions
Copy link
Contributor

SimpleCov Report

Coverage Threshold
Line 93.77% 93%

Copy link
Contributor

@tannalynn tannalynn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably add a changelog entry for this since customers could see different behavior now if they were using it wrong previously. That way they'll know why it is acting differently for them.

Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm requesting changes for the changelog entry, just so that I don't keep opening up the PR wondering why I haven't approved it yet! 😅

@hannahramadan
Copy link
Contributor Author

@kaylareopelle changelog done!

hannahramadan and others added 2 commits November 13, 2025 13:06
Co-authored-by: Kayla Reopelle <[email protected]>
Co-authored-by: Kayla Reopelle <[email protected]>
@hannahramadan hannahramadan merged commit 0115675 into v10_0_0 Nov 14, 2025
36 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent#record_custom_event should raise on invalid event_type

4 participants