-
Notifications
You must be signed in to change notification settings - Fork 67
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(agent): Adds label forwarding to log events #1027
Open
mfulb
wants to merge
60
commits into
dev
Choose a base branch
from
feat/apm_logging_labels
base: dev
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.
Open
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
012793d
feat(agent): Adds INI values for labels for forwarded logs
mfulb 6c84bb9
feat(agent): Adds processing of log label from labels
mfulb f38315d
feat(agent): Label forwarding for APM logs
mfulb 78c8388
feat(agent): Adds log forwarding labels supportability metric
mfulb 520169e
tests(logging): Adds Monolog3 tests for log forwarding labels
mfulb 9a3cd24
chore(tests): Removes unneeded spaces
mfulb 5983bc0
chore(daemon): Remove debugging statement
mfulb b8c415a
tests(daemon): Add simple tests for LogEvents
mfulb ed8cada
chore(daemon): Removes unneeded import
mfulb 6c0b65f
chore(daemon): Logs unmarshall error
mfulb 0672ac0
tests(daemon): Adds log forwarded label to test
mfulb 5b23982
fix(agent): Fixes log forwarded labels definition
mfulb 8186043
fix(agent): Fixes encoding of forwarded log labels to an Event
mfulb 993403b
tests(agent): Adds test for encoding forwarded log labels
mfulb b5616d0
fix(agent): Updates function call for nr_txn_begin()
mfulb bea9a98
fix(agent): Fixes decoding of forwarded log labels as an Event
mfulb 7c9d436
fix(agent): Fixes log_forwarding_labels definition
mfulb b476cda
chore(daemon): Restores original import order
mfulb 7545636
chore(daemon): Fixes formatting
mfulb 5b906ef
tests(agent): Adds log label forwarding tests for Monolog2
mfulb 0b1b0b5
tests(agent): Updates monolog (2 & 3) tests to include new log forwar…
mfulb 2d0e4ad
chore(docs): Corrects comment for log forwarded labels exclude rule
mfulb 2c53c7a
chore(docs): Fixes version for when php_packages added to protobuf
mfulb c0a7666
chore: Removes test_segment_message - moving to another PR
mfulb 5426df7
tests(daemon): Tests invalid data passed to SetLogForwardingLabels
mfulb eb8b575
tests(axiom): Adds test if log fowarded labels is NULL
mfulb ddf40e0
tests(agent): Updates integration/api tests to have log labels metric
mfulb c7fdf4a
tests(agent): Updates integration/basic tests to have log labels metric
mfulb f921ddb
tests(agent): Updates integration/distributed_tracing tests to have l…
mfulb f73cfa0
tests(agent): Updates integration/errors tests to have log labels metric
mfulb b5e7121
tests(agent): Updates integration/external tests to have log labels m…
mfulb 83b2cbf
tests(agent): Updates integration/api tests to have log labels metric
mfulb 1ed7d03
tests(agent): Updates integration/frameworks tests to have log labels…
mfulb c6faa75
tests(agent): Updates integration/ini tests to have log labels metric
mfulb 5ef7858
tests(agent): Updates integration/lang tests to have log labels metric
mfulb a7595b0
tests(agent): Updates integration/memcache tests to have log labels m…
mfulb da69a7c
tests(agent): Updates integration/memcached tests to have log labels …
mfulb f02d0da
tests(agent): Updates integration/mysql tests to have log labels metric
mfulb a3bad9b
tests(agent): Updates integration/mysqli tests to have log labels metric
mfulb b97fa42
tests(agent): Updates integration/pdo tests to have log labels metric
mfulb 95f0d6c
tests(agent): Updates integration/pgsql tests to have log labels metric
mfulb 1e8c326
tests(agent): Updates integration/predis tests to have log labels metric
mfulb 3b40481
tests(agent): Updates integration/queue tests to have log labels metric
mfulb 3167869
tests(agent): Updates integration/redis tests to have log labels metric
mfulb 2822bab
tests(agent): Updates integration/sqlite* tests to have log labels me…
mfulb ee16060
tests(agent): Adds another test for log forwarded labels using defaults
mfulb c9bea37
fix(agent): Restores gitignore line for test_segment_message
mfulb 192e04e
Update agent/scripts/newrelic.ini.template
mfulb 277d034
chore(agent): Improves INI description for log labels exclude directive
mfulb 467c8a2
Update protocol/flatbuffers/protocol.fbs
mfulb ee9a5a4
tests(daemon): Improves log labels ingest unit tests
mfulb 8d46a55
fix(daemon): Verify log labels are correct format
mfulb 7a02270
chore(docs): Improves api doc for nr_txn_begin()
mfulb c13d6c0
fix(agent): Do not all log labels with a NULL key
mfulb a238c67
fix(agent): Protects against possiblity key is NULL
mfulb 90955f0
chore(agent): Refactors log label exclusion logic
mfulb 67c5348
tests(agent): Adds check for log forwarding labels config
mfulb a3aaad0
tests(agent): Adds unit tests for log label creation
mfulb 47df6f2
chore: Fix formatting
mfulb 65f9ba2
tests(agent): Adds some more test cases for log labels
mfulb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
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.
A check if
log_forwarding_labels_exclude
is an empty string (most common case) would allow an early exit from the function.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.
If the exclude rule is empty we need to copy all the labels into the log labels structure so I don't see how we could exit early.
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.
Why do we need to copy all the log labels if there are no excludes?
We know that we want to include everything, so if the exclude list is the an empty string, couldn't we just could exit early here and return
labels
?