-
Notifications
You must be signed in to change notification settings - Fork 45
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
feat: Add auto-logging feature #1274
Open
ptang-nr
wants to merge
16
commits into
main
Choose a base branch
from
auto-logging
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+581
−117
Open
Changes from 13 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7c084c2
feat: Wrap various console logging methods (#1249)
ptang-nr d6ccc86
Merge branch 'main' into auto-logging
ptang-nr bb7ab4d
feat: Aggregate log events based on rum flag (#1253)
ptang-nr 0e01436
Merge branch 'main' into auto-logging
ptang-nr 3fca31e
Merge branch 'main' into auto-logging
ptang-nr 1b7681d
Merge branch 'main' into auto-logging
ptang-nr 6658bca
feat: Persist logging flag in session (#1264)
ptang-nr d34f889
Merge branch 'main' into auto-logging
ptang-nr 5de66af
chore: Prep to publish log experiment to staging
ptang-nr 246efc0
Merge branch 'main' into auto-logging
ptang-nr ea5735d
fix: Logging mode of the re-wrap test
ptang-nr 6053f42
chore: Small refactor/cleanup
ptang-nr 15e1e45
Merge branch 'main' into auto-logging
ptang-nr c275544
chore: Move session logic out of aggregate-base
ptang-nr 7b64d2f
Merge branch 'main' into auto-logging
ptang-nr cb46c34
Merge branch 'main' into auto-logging
ptang-nr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ptang-nr marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
Copyright 2024 New Relic Corporation. | ||
PDX-License-Identifier: Apache-2.0 | ||
--> | ||
<html> | ||
<head> | ||
<title>Logs - Console Logs - Harvest Early</title> | ||
{init} {config} {loader} | ||
</head> | ||
<body>Logs - Console Logs - Harvest Early | ||
<script> | ||
const longMessage = 'x'.repeat(800*800) | ||
/** the combination of the two large messages pushes it past the MAX_PAYLOAD_SIZE, | ||
* causing the first valid one to get harvested before buffering the second one **/ | ||
console.info(longMessage) | ||
console.info(longMessage) | ||
// harvest should not have the '...xxxxx...' payload in it | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
Copyright 2024 New Relic Corporation. | ||
PDX-License-Identifier: Apache-2.0 | ||
--> | ||
<html> | ||
<head> | ||
<title>Logs - Console Logs - Post Load</title> | ||
{init} {config} {loader} | ||
</head> | ||
<body>Logs - Console Logs - Post Load | ||
<script> | ||
console.log('log') | ||
console.info('info') | ||
console.debug('debug') | ||
console.trace('trace') | ||
console.error('error') | ||
console.warn('warn') | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
Copyright 2024 New Relic Corporation. | ||
PDX-License-Identifier: Apache-2.0 | ||
--> | ||
<html> | ||
<head> | ||
<title>Logs - Console Logs - Pre Load</title> | ||
{init} {config} {loader} | ||
<script> | ||
console.log('log') | ||
console.info('info') | ||
console.debug('debug') | ||
console.trace('trace') | ||
console.error('error') | ||
console.warn('warn') | ||
</script> | ||
</head> | ||
<body>Logs - Console Logs - Pre Load | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
Copyright 2024 New Relic Corporation. | ||
PDX-License-Identifier: Apache-2.0 | ||
--> | ||
<html> | ||
<head> | ||
<title>Logs - Console Logs - Payload Too Large</title> | ||
{init} {config} {loader} | ||
</head> | ||
<body>Logs - Console Logs - Payload Too Large | ||
<script> | ||
console.log('x'.repeat(1024*1024)) // too big | ||
console.log('log') | ||
console.info('info') | ||
console.debug('debug') | ||
console.trace('trace') | ||
console.error('error') | ||
console.warn('warn') | ||
|
||
// harvest should not have the '...xxxxx...' payload in it | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was removed for the experimental publish to staging