Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce maximums on custom event attributes #2401

Merged
merged 16 commits into from
Jan 20, 2024

Conversation

tannalynn
Copy link
Contributor

@tannalynn tannalynn commented Jan 19, 2024

The agent wasn't enforcing any kind of maximum size for custom event attribute values. If an attribute exceeded the max size, the new relic backend would drop the attribute from the custom event.

This will enforce the following limits to prevent the attribute from being dropped
attribute names: 255
attribute values: 4095
attribute count: 64

closes # #2356

@tannalynn tannalynn marked this pull request as ready for review January 19, 2024 00:11
@tannalynn tannalynn changed the title Limit custom event attribute length to 4095 Enforce maximums on custom event attributes Jan 19, 2024
fallwith
fallwith previously approved these changes Jan 19, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
lib/new_relic/agent/attribute_processing.rb Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
tannalynn and others added 4 commits January 19, 2024 09:18
Co-authored-by: Kayla Reopelle (she/her) <87386821+kaylareopelle@users.noreply.github.com>
Co-authored-by: Kayla Reopelle (she/her) <87386821+kaylareopelle@users.noreply.github.com>
Co-authored-by: Kayla Reopelle (she/her) <87386821+kaylareopelle@users.noreply.github.com>
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Kayla Reopelle (she/her) <87386821+kaylareopelle@users.noreply.github.com>
Copy link
Contributor

SimpleCov Report

Coverage Threshold
Line 93.69% 93%
Branch 71.8% 71%

@tannalynn tannalynn merged commit 2968b6c into dev Jan 20, 2024
28 checks passed
@tannalynn tannalynn deleted the limit_custom_event_attribute_length branch January 20, 2024 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants