This lightweight Java Agent extension listens for Java Agent configChanged
and transactionFinished
events.
It adds the labels from the Agent's configuration yml file to each completed Agent transaction subject to the Rules below. The labels are read on startup and on configChanged
events.
The added labels appear in every Transaction Trace as user attributes.
- envvars always ovverride the configuration file
- envvars are always uppercase
- Always look for
deployment_version
label - If
transaction_listener_service_labels
is present in thecommon
section ofnewrelic.yml
as a semi-colon delimited list of labels then use it to filter whichlabels
to use - If
transaction_listener_service_labels
is not present in thecommon
section ofnewrelic.yml
then report alllabels
To install:
- Download the latest release jar files.
- In the New Relic Java directory (the one containing newrelic.jar), create a directory named extensions if it does not already exist.
- Copy the downloaded jars into the extensions directory.
- Restart the application.
New Relic has open-sourced this project. This project is provided AS-IS WITHOUT WARRANTY OR SUPPORT, although you can report issues and contribute to the project here on GitHub.
Please do not report issues with this software to New Relic Global Technical Support.
We encourage your contributions to improve [Transaction Listener Service]! Keep in mind when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project. If you have any questions, or to execute our corporate CLA, required if your contribution is on behalf of a company, please drop us an email at opensource@newrelic.com.
[Transaction Listener Service] is licensed under the Apache 2.0 License.