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

Add synthetics info header #2203

Merged
merged 17 commits into from Sep 26, 2023
Merged

Add synthetics info header #2203

merged 17 commits into from Sep 26, 2023

Conversation

tannalynn
Copy link
Contributor

@tannalynn tannalynn commented Sep 11, 2023

This adds the logic for handling the new synthetics header, X-NewRelic-Synthetics-Info, adding the attributes to the transaction as intrinsic attributes, and adds the header to outgoing external request headers. These attributes are included in transaction events and error events. They will also automatically be included in transaction/error traces, as those include all intrinsic attributes already.

spec
closes #2055

@tannalynn tannalynn marked this pull request as ready for review September 14, 2023 20:49
Comment on lines +86 to +88
def snakeize(string)
string.gsub(/(.)([A-Z])/, '\1_\2').downcase
end
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! We have a language support test file. Could you add tests for this method to it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added a test for this here 436f5d2

Copy link
Contributor

Choose a reason for hiding this comment

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

I like the name of this method 🐍

kaylareopelle
kaylareopelle previously approved these changes Sep 22, 2023
kaylareopelle
kaylareopelle previously approved these changes Sep 22, 2023
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Kayla Reopelle (she/her) <87386821+kaylareopelle@users.noreply.github.com>
@github-actions
Copy link

SimpleCov Report

Coverage Threshold
Line 94.33% 94%
Branch 85.84% 85%

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.

🎉

@tannalynn tannalynn merged commit 10846a6 into dev Sep 26, 2023
26 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.

Ruby - Support New Synthetics Header
4 participants