newrelic_rpm 8.5.0 → 8.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -1
- data/LICENSE +0 -6
- data/README.md +16 -18
- data/THIRD_PARTY_NOTICES.md +14 -199
- data/lib/new_relic/agent/agent.rb +21 -0
- data/lib/new_relic/agent/agent_logger.rb +7 -0
- data/lib/new_relic/agent/audit_logger.rb +4 -0
- data/lib/new_relic/agent/configuration/default_source.rb +72 -14
- data/lib/new_relic/agent/configuration/event_harvest_config.rb +4 -2
- data/lib/new_relic/agent/configuration/server_source.rb +1 -0
- data/lib/new_relic/agent/hostname.rb +16 -10
- data/lib/new_relic/agent/instrumentation/active_support_logger/chain.rb +23 -0
- data/lib/new_relic/agent/instrumentation/active_support_logger/instrumentation.rb +20 -0
- data/lib/new_relic/agent/instrumentation/active_support_logger/prepend.rb +12 -0
- data/lib/new_relic/agent/instrumentation/active_support_logger.rb +24 -0
- data/lib/new_relic/agent/instrumentation/curb/chain.rb +1 -1
- data/lib/new_relic/agent/instrumentation/curb/prepend.rb +1 -1
- data/lib/new_relic/agent/instrumentation/logger/instrumentation.rb +18 -18
- data/lib/new_relic/agent/instrumentation/logger.rb +4 -3
- data/lib/new_relic/agent/linking_metadata.rb +45 -0
- data/lib/new_relic/agent/local_log_decorator.rb +37 -0
- data/lib/new_relic/agent/log_event_aggregator.rb +234 -0
- data/lib/new_relic/agent/log_priority.rb +20 -0
- data/lib/new_relic/agent/new_relic_service.rb +14 -7
- data/lib/new_relic/agent/pipe_service.rb +4 -0
- data/lib/new_relic/agent/samplers/memory_sampler.rb +6 -1
- data/lib/new_relic/agent/transaction.rb +11 -0
- data/lib/new_relic/agent.rb +4 -14
- data/lib/new_relic/helper.rb +40 -0
- data/lib/new_relic/version.rb +1 -1
- data/lib/tasks/config.rake +3 -3
- data/newrelic.yml +20 -4
- data/newrelic_rpm.gemspec +1 -0
- data/test/agent_helper.rb +18 -4
- metadata +24 -3
- data/ROADMAP.md +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a27c57733a8526d02022000c47f15de428bda5cb685078adcdb3fd73cf11eda
|
4
|
+
data.tar.gz: 8f51f79eb70cf8fb9ac70d2fe0d669e2f69eb64e5083291a544ed6210d64efd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff3ff2a548356d2820d90b387f41697f4ccee9e5813e18f2b82b3e77a8892f09607eac403f08c24e016c889b2f9d3892d2767985e8b513adcac174d3a8b085f2
|
7
|
+
data.tar.gz: 72c0a812656455286d0e3d9af0fb1c4d5c7700039617f6cf40250d31cda0adce549a144317932b65c29abce5c220a6a602d6d5b3cdb6aab1150f544a9ab6ed04
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,32 @@
|
|
1
1
|
# New Relic Ruby Agent Release Notes #
|
2
2
|
|
3
|
+
## v8.6.0
|
4
|
+
|
5
|
+
* **Telemetry-in-Context: Automatic Application Logs, a quick way to view logs no matter where you are in the platform**
|
6
|
+
|
7
|
+
- Adds support for forwarding application logs to New Relic. This automatically sends application logs that have been enriched to power Telemetry-in-Context. This is disabled by default in this release. This may be on by default in a future release.
|
8
|
+
- Adds support for enriching application logs written to disk or standard out. This can be used with another log forwarder to power Telemetry-in-Context if in-agent log forwarding is not desired. We recommend enabling either log forwarding or local log decorating, but not both features. This is disabled by default in this release.
|
9
|
+
- Improves speed and Resque support for logging metrics which shows the rate of log message by severity in the Logs chart in the APM Summary view. This is enabled by default in this release.
|
10
|
+
|
11
|
+
To learn more about Telemetry-in-Context and the configuration options please see the documentation [here](https://docs.newrelic.com/docs/apm/agents/ruby-agent/configuration/ruby-agent-configuration/).
|
12
|
+
|
13
|
+
* **Improve the usage of the 'hostname' executable and other executables**
|
14
|
+
|
15
|
+
In all places where a call to an executable binary is made (currently this is done only for the 'hostname' and 'uname' binaries), leverage a new helper method when making the call. This new helper will a) not attempt to execute the binary if it cannot be found, and b) prevent STDERR/STDOUT content from appearing anywhere except New Relic's own logs if the New Relic logger is set to the 'debug' level. When calling 'hostname', fall back to `Socket.gethostname` if the 'hostname' binary cannot be found. When calling 'uname', fall back on using a value of 'unknown' if the 'uname' command fails. Many thanks to @metaskills and @brcarp for letting us know that Ruby AWS Lambda functions can't invoke 'hostname' and for providing ideas and feedback with [Issue #697](https://github.com/newrelic/newrelic-ruby-agent/issues/697).
|
16
|
+
|
17
|
+
* **Documentation: remove confusing duplicate RUM entry from newrelic.yml**
|
18
|
+
|
19
|
+
The `browser_monitoring.auto_instrument` configuration option to enable web page load timing (RUM) was confusingly listed twice in the newrelic.yml config file. This option is enabled by default. The newrelic.yml file has been updated to list the option only once. Many thanks to @robotfelix for bringing this to our attention with [Issue #955](https://github.com/newrelic/newrelic-ruby-agent/issues/955).
|
20
|
+
|
21
|
+
* **Bugfix: fix unit test failures when New Relic environment variables are present**
|
22
|
+
|
23
|
+
Previously, unit tests would fail with unexpected invocation errors when `NEW_RELIC_LICENSE_KEY` and `NEW_RELIC_HOST` environment variables were present. Now, tests will discard these environment variables before running.
|
24
|
+
|
25
|
+
* **Bugfix: Curb - satify method_with_tracing's verb argument requirement**
|
26
|
+
|
27
|
+
When Curb instrumentation is used (either via prepend or chain), be sure to always pass the verb argument over to `method_with_tracing` which requires it. Thank you to @knarewski for bringing this issue to our attention, for providing a means of reproducing an error, and for providing a fix. That fix has been replicated by the agent team with permission. See [Issue 1033](https://github.com/newrelic/newrelic-ruby-agent/issues/1033) for more details.
|
28
|
+
|
29
|
+
|
3
30
|
## v8.5.0
|
4
31
|
|
5
32
|
* **AWS: Support IMDSv2 by using a token with metadata API calls**
|
@@ -564,7 +591,7 @@
|
|
564
591
|
## v6.12.0
|
565
592
|
|
566
593
|
* The New Relic Ruby Agent is now open source under the [Apache 2 license](LICENSE)
|
567
|
-
and you can now observe the
|
594
|
+
and you can now observe the [issues we're working on](https://github.com/orgs/newrelic/projects/17). See our [Contributing guide](https://github.com/newrelic/newrelic-ruby-agent/blob/main/CONTRIBUTING.md)
|
568
595
|
and [Code of Conduct](https://github.com/newrelic/.github/blob/master/CODE_OF_CONDUCT.md) for details on contributing!
|
569
596
|
|
570
597
|
* **Security: Updated all uses of Rake to >= 12.3.3**
|
data/LICENSE
CHANGED
@@ -175,10 +175,6 @@
|
|
175
175
|
|
176
176
|
END OF TERMS AND CONDITIONS
|
177
177
|
|
178
|
-
Versions 6.12.0 and above for this project are licensed under
|
179
|
-
Apache 2.0. For prior versions of this project, please see the
|
180
|
-
LICENSE file in the root directory of that version for more information.
|
181
|
-
|
182
178
|
APPENDIX: How to apply the Apache License to your work.
|
183
179
|
|
184
180
|
To apply the Apache License to your work, attach the following
|
@@ -204,5 +200,3 @@
|
|
204
200
|
See the License for the specific language governing permissions and
|
205
201
|
limitations under the License.
|
206
202
|
|
207
|
-
|
208
|
-
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ You can also extend the agent's performance monitoring to
|
|
8
8
|
[collect and analyze business data](https://docs.newrelic.com/docs/agents/ruby-agent/getting-started/introduction-new-relic-ruby#business-data)
|
9
9
|
to help you improve the customer experience and make data-driven business decisions.
|
10
10
|
|
11
|
-
The New Relic Ruby
|
11
|
+
The New Relic Ruby agent is dual-purposed as either a Gem or a Rails plugin,
|
12
12
|
hosted on [github](https://github.com/newrelic/newrelic-ruby-agent).
|
13
13
|
|
14
14
|
[![Gem Version](https://badge.fury.io/rb/newrelic_rpm.svg)](https://badge.fury.io/rb/newrelic_rpm)
|
@@ -23,13 +23,13 @@ Environments" section below.
|
|
23
23
|
|
24
24
|
## Installing and Using
|
25
25
|
|
26
|
-
The latest released gem for the Ruby
|
26
|
+
The latest released gem for the Ruby agent can be found at [Rubygems.org](https://rubygems.org/gems/newrelic_rpm)
|
27
27
|
|
28
28
|
### Quick Start
|
29
29
|
|
30
30
|
#### With Bundler
|
31
31
|
|
32
|
-
For using with Bundler, add the Ruby
|
32
|
+
For using with Bundler, add the Ruby agent to your project's Gemfile.
|
33
33
|
|
34
34
|
```ruby
|
35
35
|
gem 'newrelic_rpm'
|
@@ -71,16 +71,18 @@ For complete documentation on installing the New Relic Ruby agent, see the follo
|
|
71
71
|
* [GAE Flexible Environment](https://docs.newrelic.com/docs/agents/ruby-agent/installation/install-new-relic-ruby-agent-gae-flexible-environment)
|
72
72
|
* [Pure Rack Apps](http://docs.newrelic.com/docs/ruby/rack-middlewares)
|
73
73
|
* [Ruby agent and Heroku](https://docs.newrelic.com/docs/agents/ruby-agent/installation/ruby-agent-heroku)
|
74
|
-
* [Background Jobs](https://docs.newrelic.com/docs/agents/ruby-agent/background-jobs)
|
74
|
+
* [Background Jobs](https://docs.newrelic.com/docs/agents/ruby-agent/background-jobs/monitor-ruby-background-processes)
|
75
75
|
* [Uninstall the Ruby agent](https://docs.newrelic.com/docs/agents/ruby-agent/installation/uninstall-ruby-agent)
|
76
76
|
|
77
77
|
### Recording Deploys
|
78
78
|
|
79
|
-
The Ruby
|
80
|
-
tool or Capistrano recipes. For more information on these features see
|
79
|
+
The Ruby agent supports* recording deployments in New Relic via a command line
|
80
|
+
tool or Capistrano recipes. For more information on these features, see
|
81
81
|
[our deployment documentation](http://docs.newrelic.com/docs/ruby/recording-deployments-with-the-ruby-agent)
|
82
82
|
for more information.
|
83
83
|
|
84
|
+
*There is a [known issue](https://github.com/newrelic/newrelic-ruby-agent/issues/715) that prevents newly generated New Relic API keys from recording deploys.
|
85
|
+
|
84
86
|
## Support
|
85
87
|
|
86
88
|
Should you need assistance with New Relic products, you are in good hands with several support diagnostic tools and support channels.
|
@@ -103,17 +105,14 @@ If the issue has been confirmed as a bug or is a Feature request, please file a
|
|
103
105
|
|
104
106
|
At New Relic we take your privacy and the security of your information seriously, and are committed to protecting your information. We must emphasize the importance of not sharing personal data in public forums, and ask all users to scrub logs and diagnostic information for sensitive information, whether personal, proprietary, or otherwise.
|
105
107
|
|
106
|
-
We define “Personal Data” as any information relating to an identified or identifiable individual, including, for example, your name, phone number, post code or zip code, Device ID, IP address and email address.
|
108
|
+
We define “Personal Data” as any information relating to an identified or identifiable individual, including, for example, your name, phone number, post code or zip code, Device ID, IP address, and email address.
|
107
109
|
|
108
110
|
Please review [New Relic’s General Data Privacy Notice](https://newrelic.com/termsandconditions/privacy) for more information.
|
109
111
|
|
110
|
-
## Roadmap
|
111
|
-
See our [roadmap](https://github.com/newrelic/newrelic-ruby-agent/blob/main/ROADMAP.md), to learn more about our product vision, understand our plans, and provide us valuable feedback.
|
112
|
-
|
113
112
|
## Contributing
|
114
113
|
|
115
|
-
We encourage contributions to improve the New Relic Ruby agent! 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.
|
116
|
-
If you have any questions, or to execute our corporate CLA
|
114
|
+
We encourage contributions to improve the New Relic Ruby agent! Keep in mind when you submit your pull request, you'll need to sign the Contributor License Agreement (CLA) via the click-through using CLA-Assistant. You only have to sign the CLA one time per project.
|
115
|
+
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.
|
117
116
|
|
118
117
|
**A note about vulnerabilities**
|
119
118
|
|
@@ -128,13 +127,12 @@ the [New Relic Ruby agent](https://opensource.newrelic.com/projects/newrelic/new
|
|
128
127
|
|
129
128
|
## License
|
130
129
|
|
131
|
-
|
132
|
-
The New Relic Ruby agent also uses source code from third-party libraries. Full details on which libraries are used and the terms under which they are licensed can be found in the [THIRD_PARTY_NOTICES.md](https://github.com/newrelic/newrelic-ruby-agent/blob/main/THIRD_PARTY_NOTICES.md).
|
130
|
+
As of version 6.12 (released July 16, 2020), the New Relic Ruby agent is licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for a copy of the license. For older agent versions, check the LICENSE file included with the source code.
|
133
131
|
|
134
|
-
|
132
|
+
The New Relic Ruby agent may use source code from third-party libraries. When used, these libraries will be outlined in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
|
135
133
|
|
136
|
-
Thank
|
134
|
+
## Thank You
|
137
135
|
|
138
|
-
|
136
|
+
Thank you,
|
139
137
|
|
140
|
-
New Relic
|
138
|
+
New Relic Ruby agent team
|
data/THIRD_PARTY_NOTICES.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Third Party Notices
|
2
2
|
|
3
|
-
The New Relic Ruby
|
4
|
-
their own copyright notices and license terms.
|
5
|
-
below.
|
3
|
+
The New Relic Ruby agent may make use of source code from third party libraries
|
4
|
+
which carry their own copyright notices and license terms. Any such content will
|
5
|
+
be provided below.
|
6
6
|
|
7
7
|
In the event that a required notice is missing or incorrect, please notify us
|
8
8
|
by e-mailing [open-source@newrelic.com](mailto:open-source@newrelic.com).
|
@@ -11,203 +11,18 @@ For any licenses that require the disclosure of source
|
|
11
11
|
code, the source code can be found at:
|
12
12
|
[https://github.com/newrelic/newrelic-ruby-agent](https://github.com/newrelic/newrelic-ruby-agent).
|
13
13
|
|
14
|
-
## Content
|
15
14
|
|
16
|
-
|
15
|
+
## Current Notices and Terms
|
17
16
|
|
18
|
-
|
17
|
+
As of version 7.0 (released April 23, 2021), the New Relic Ruby agent does not
|
18
|
+
include any third party software with its distribution.
|
19
19
|
|
20
|
-
|
21
|
-
|
20
|
+
The Ruby agent team leverages a variety of open source third party software for
|
21
|
+
the development of the agent but not distributed with the agent. Some of these
|
22
|
+
software packages are referenced as development dependencies in the agent's
|
23
|
+
[newrelic_rpm.gemspec](newrelic_rpm.gemspec) file. We are grateful
|
24
|
+
to the maintainers and contributors for all of these packages.
|
22
25
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
ROOT CERTIFICATES TO YOU AS THE INDIVIDUAL, THE COMPANY, OR THE LEGAL ENTITY THAT
|
27
|
-
WILL BE UTILIZING THE ROOT CERTIFICATES (REFERENCED BELOW AS “YOU” OR “YOUR”)
|
28
|
-
ONLY ON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS OF THIS AGREEMENT
|
29
|
-
(“AGREEMENT”). READ THE TERMS AND CONDITIONS OF THIS AGREEMENT CAREFULLY
|
30
|
-
BEFORE USING THE ROOT CERTIFICATES. THIS IS A LEGAL AND ENFORCEABLE CONTRACT
|
31
|
-
BETWEEN YOU AND SYMANTEC. BY USING THE ROOT CERTIFICATES, YOU AGREE TO THE
|
32
|
-
TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO THESE TERMS AND
|
33
|
-
CONDITIONS, MAKE NO FURTHER USE OF THE ROOT CERTIFICATES. UNLESS OTHERWISE
|
34
|
-
DEFINED HEREIN, CAPITALIZED TERMS WILL HAVE THE MEANING GIVEN IN THE “DEFINITIONS”
|
35
|
-
SECTION OF THIS AGREEMENT AND SUCH CAPITALIZED TERMS MAY BE USED IN THE
|
36
|
-
SINGULAR OR IN THE PLURAL, AS THE CONTEXT REQUIRES.
|
37
|
-
|
38
|
-
ROOT CERTIFICATE TERMS AND CONDITIONS
|
39
|
-
1. DEFINITIONS.
|
40
|
-
"Certificate" means an electronic file that, at least, states a name or identifies the issuing Certificate
|
41
|
-
Authority, identifies the subscriber, contains the subscriber's public key, identifies the Certificate's
|
42
|
-
operational period, contains a Certificate serial number, and contains a digital signature of the issuing
|
43
|
-
Certificate Authority.
|
44
|
-
“Certificate Authority” or “CA” means a person or entity authorized to issue, suspend, or revoke
|
45
|
-
Certificates.
|
46
|
-
“Intermediate CA” means a CA Certificate signed by a Root Certificate Intermediate that issues
|
47
|
-
Certificates either to end-entities or other Certificate Authorities, but not to both.
|
48
|
-
"Products" means all versions of Your product or service with which the Root Certificates are incorporated
|
49
|
-
(including successor products and services or any major or minor upgrades thereto).
|
50
|
-
"Root Certificate" means a self-signed Certificate issued by a top-level Certificate Authority to itself, which
|
51
|
-
includes such Certificate Authority's public key. The Root Certificates and Root Certificate files to be
|
52
|
-
provided by Company to Customer pursuant to this Agreement are available for download at
|
53
|
-
https://www.verisign.com/support/roots.html, https://www.thawte.com/roots/index.html or
|
54
|
-
https://www.geotrust.com/resources/rootcertificates/index.html.
|
55
|
-
2. LICENSE. During the term of this Agreement, Symantec grants You a royalty-free, non-exclusive, nontransferable license to (a) use the Root Certificate for the purposes of testing (without the right to modify);
|
56
|
-
(b) make copies of Root Certificates only in order to embed and incorporate them, unmodified and in full,
|
57
|
-
as roots in Your Products; (c) distribute the Root Certificates as embedded and incorporated in such
|
58
|
-
Products; and (d) use the relevant logos and trademarks of Symantec in Your marketing materials,
|
59
|
-
advertisements, product data sheets, product packaging and websites solely conjunction with the
|
60
|
-
distribution of the Root Certificates in accordance with Symantec’s published guidelines for such usage.
|
61
|
-
You shall not have the right to further distribute the Root Certificates other than as described herein
|
62
|
-
without an additional license grant, in a separate writing, from Symantec.
|
63
|
-
3. RESTRICTIONS. You may not: (a) modify or create any derivative works of Root Certificates; (b)
|
64
|
-
assign, sublicense, sell, rent, or lease Symantec's root keys or Root Certificates; (c) use such Root
|
65
|
-
Certificates except as expressly permitted under this Agreement; (d) remove or alter any trademark, logo,
|
66
|
-
copyright, or other proprietary notices, legends, symbols, or labels provided in the Root Certificates; or (e)
|
67
|
-
certify, or cause a third party to certify, the public key contained in the Root Certificates by issuing or
|
68
|
-
creating a Certificate containing such public key.
|
69
|
-
4. CUSTOMER’S OBLIGATIONS.
|
70
|
-
4.1. During the term of this Agreement, You shall use commercially reasonable efforts regularly check the
|
71
|
-
applicable Symantec URL for updates to the Root Certificates and update Root Certificates embedded
|
72
|
-
into Your Products with the most currently available Root Certificates, unmodified and in full, or as a patch
|
73
|
-
or update. If Symantec updates its Root Certificates,, You shall use commercially reasonable efforts to (i)
|
74
|
-
discontinue all copying and use of the Root Certificates which have been replaced, and (ii) to use
|
75
|
-
Symantec’s then-current Root Certificates. Any updates to the Root Certificates are incorporated into and
|
76
|
-
subject to the terms of this Agreement.
|
77
|
-
4.2. You shall appoint at least one (1) individual as the administrative contact designated to address any
|
78
|
-
Root Certificate issues and shall provide the contact information for such individual to dl-tssroot@symantec.com.
|
79
|
-
4.3 In the event You become aware of or suspect any event that diminishes the integrity of Symantec's
|
80
|
-
data or public key system ("Compromise"), You shall immediately notify Symantec at dl-tss-
|
81
|
-
root@symantec.com of such Compromise, and take reasonable steps to assist and cooperate with
|
82
|
-
Symantec to remedy the Compromise.
|
83
|
-
4.4 In the event that Symantec modifies these terms of use for the Root certificates for all end users,
|
84
|
-
Symantec shall post the modified terms for the Agreement on the applicable URL and may post the
|
85
|
-
modified terms on the Symantec corporate website. You shall be responsible for regularly checking the
|
86
|
-
applicable URL for modifications to this Agreement. Such modifications shall be effective and binding on
|
87
|
-
Customer within thirty (30) days of Symantec’s posting such modifications to its website. If you do not
|
88
|
-
accept the modified Agreement, discontinue use of the Root Certificates and this Agreement will be
|
89
|
-
deemed as terminated.
|
90
|
-
5. CONFIDENTIALITY.
|
91
|
-
5.1. Confidential Information. "Confidential Information" means the root private keys corresponding to the
|
92
|
-
public key in a Root Certificate, and any confidential, trade secret, or other proprietary information
|
93
|
-
disclosed by a party to the other party under this Agreement, except for Information that: (i) is public
|
94
|
-
knowledge at the time of disclosure, (ii) was known by the receiving party before disclosure by the
|
95
|
-
disclosing party, or becomes public knowledge or otherwise known to the receiving party after such
|
96
|
-
disclosure, other than by breach of a confidentiality obligation, or (iii) is independently developed by the
|
97
|
-
receiving party by persons without access to Confidential Information of the disclosing party.
|
98
|
-
5.2. Protection of Confidential Information. The receiving party shall: (i) not disclose the Confidential
|
99
|
-
information to any third party, (ii) not use the Confidential Information except for purposes of performing
|
100
|
-
this Agreement, and (iii) take steps consistent with its protection of its own confidential and proprietary
|
101
|
-
information (but in no event exercise less than reasonable care) to prevent unauthorized disclosure of the
|
102
|
-
Confidential Information. Each party acknowledges that breach of this Section 5 may cause irreparable
|
103
|
-
harm to the disclosing party entitling the disclosing party to injunctive relief, among other remedies.
|
104
|
-
5.3. Mutual Cooperation. Each party will notify and cooperate with the other party in enforcing the
|
105
|
-
disclosing party's rights if such party becomes aware of a threatened or actual violation of the
|
106
|
-
confidentiality requirements of this Section 5. Each party shall have confidentiality agreements with its
|
107
|
-
employees, agents or independent contractors sufficient in scope to fulfill its confidentiality obligations
|
108
|
-
under this Agreement.
|
109
|
-
6. INTELLECTUAL PROPERTY. You acknowledge that Symantec, including its wholly owned
|
110
|
-
subsidiaries, retains all intellectual property rights and title (including any patent, copyright, trademark,
|
111
|
-
trade secret, and other rights) in and to the Root Certificates, the public and private keys corresponding to
|
112
|
-
such Root Certificates ("Symantec Intellectual Property"). This Agreement does not give You any
|
113
|
-
intellectual property rights in the Symantec intellectual property except for the license granted in Section
|
114
|
-
2. To the extent You use Symantec's trademarks or logos as permitted herein, You agree to comply with
|
115
|
-
all usage requirements set forth in the then current version of Symantec's Logo and Trademark Usage
|
116
|
-
Guide (http://www.symantec.com/about/profile/policies/trademarks.jsp) and any other guides and
|
117
|
-
procedures of Symantec.
|
118
|
-
7. NO WARRANTIES. THE ROOT CERTIFICATES, INCLUDING UPDATES, ARE PROVIDED "AS IS"
|
119
|
-
WITHOUT ANY WARRANTY WHATSOEVER. SYMANTEC HEREBY DISCLAIMS ALL WARRANTIES,
|
120
|
-
WHETHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING WITHOUT LIMITATION, ANY
|
121
|
-
IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
|
122
|
-
NONINFRINGEMENT OF THIRD PARTY RIGHTS.
|
123
|
-
8. LIMITATION OF LIABILITY. UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY WILL
|
124
|
-
SYMANTEC OR ITS LICENSORS BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY
|
125
|
-
CONSEQUENTIAL, INDIRECT, SPECIAL, INCIDENTAL, OR EXEMPLARY DAMAGES, WHETHER
|
126
|
-
FORESEEABLE OR UNFORESEEABLE, EVEN IF SUCH PARTY HAS BEEN ADVISED OF THE
|
127
|
-
POSSIBILITY OF SUCH DAMAGES. YOU WILL TAKE REASONABLE MEASURES TO INSURE THAT
|
128
|
-
THE TERMS AND CONDITIONS SET FORTH IN THE PRECEDING SENTENCE OF THIS SECTION 8
|
129
|
-
ARE INCORPORATED INTO ANY AGREEMENT BETWEEN YOU AND YOUR CUSTOMERS OR
|
130
|
-
LICENSEES. SYMANTEC SHALL NOT BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY
|
131
|
-
DAMAGES CAUSED BY YOUR OR A THIRD PARTY’S CONTINUED USE OF ANY OUTDATED
|
132
|
-
ROOTS FOR WHICH AN UPDATED VERSION IS MADE AVAILABLE BY SYMANTEC. FURTHER,
|
133
|
-
UNDER NO CIRCUMSTANCES WILL SYMANTEC'S LIABILITY FOR ANY ACTION OR CLAIM EXCEED
|
134
|
-
USD$1,000, REGARDLESS OF WHETHER SUCH ACTION OR CLAIM IS BASED IN CONTRACT,
|
135
|
-
TORT, STRICT LIABILITY, OR OTHERWISE.
|
136
|
-
9. TERM AND TERMINATION.
|
137
|
-
9.1. Term. This Agreement shall become effective as of the earlier of, Your first use of the Root
|
138
|
-
Certificates, and shall remain in effect until the earlier of (i) Your discontinued use of the Root Certificates;
|
139
|
-
(ii) termination by either party under the terms of Section 9.2, below; or (iii) Symantec’s notice to You that
|
140
|
-
Symantec is no longer providing Root Certificates for use.
|
141
|
-
9.2. Termination for Default/Insolvency. Either party shall be entitled to terminate this Agreement in the
|
142
|
-
event of a failure by the other party to perform any of its material obligations under this Agreement if such
|
143
|
-
breach is not cured within thirty (30) days after receipt of written notice thereof from the non-defaulting
|
144
|
-
party or within forty-eight (48) hours after receipt of such written notice if a breach by You may
|
145
|
-
compromise the security of the Symantec Trust Network or other system. This Agreement shall terminate
|
146
|
-
upon the election of and notice from a party to the other if the other party is adjudged insolvent or
|
147
|
-
bankrupt, or the institution of any proceedings by or against the other party seeking relief, reorganization,
|
148
|
-
or arrangement under any laws relating to insolvency, or any assignment for the benefit of creditors, or
|
149
|
-
the appointment of a receiver, liquidator, or trustee of any of the other party's property or assets, or the
|
150
|
-
liquidation, dissolution, or winding up of the other party's business.
|
151
|
-
9.3. Effect of Expiration or Termination. Upon expiration or termination of this Agreement, except for a
|
152
|
-
breach by You, You may continue to distribute the current version of Your Products which incorporate the
|
153
|
-
Root Certificates. Any updates or upgrades thereto may not include the Root Certificates and You shall
|
154
|
-
stop making copies of Root Certificates, shall stop including Root Certificates in Your Products, and shall
|
155
|
-
stop using Symantec’s logos and trademarks. The provisions of Sections 3, 4.3, 5, 6, 7, 8, 9.3, and 10
|
156
|
-
shall survive termination of this Agreement.
|
157
|
-
10. GENERAL.
|
158
|
-
10.1. Governing Laws. This Agreement and any disputes relating to the services provided hereunder shall
|
159
|
-
be governed and interpreted according to each of the following laws, respectively, without regard to its
|
160
|
-
conflicts of law provisions: (a) the laws of the State of California, if You are located in North America or
|
161
|
-
Latin America; or (b) the law of England, if You are located in Europe, Middle East or Africa; or (c) the
|
162
|
-
laws of Singapore, if You are located in Asia Pacific including Japan. The United Nations Convention on
|
163
|
-
Contracts for the International Sale of Goods shall not apply to this Agreement.
|
164
|
-
10.2. Binding Upon Successors; Assignment. This Agreement shall be binding upon, and inure to the
|
165
|
-
benefit of, the successors, executors, heirs, representatives, administrators, and assigns of the parties
|
166
|
-
hereto. Notwithstanding the foregoing, You may not assign Your rights or obligations under this
|
167
|
-
Agreement without the prior written consent of Symantec. Any such purported assignment of this
|
168
|
-
Agreement without obtaining written consent shall be void and of no effect.
|
169
|
-
10.3. Severability; Enforcement; No Waiver. The unenforceability of any provision or provisions of this
|
170
|
-
Agreement shall not impair the enforceability of any other part of this Agreement. If any provision of this
|
171
|
-
Agreement shall be deemed invalid or unenforceable, in whole or in part, this Agreement shall be deemed
|
172
|
-
amended to delete or modify, as necessary, the invalid or unenforceable provision to render it valid,
|
173
|
-
enforceable, and, insofar as possible, consistent with the original intent of the parties. The failure of a
|
174
|
-
party, at any time or from time to time, to require performance of any obligations of the other party
|
175
|
-
hereunder shall not be deemed a waiver and shall not affect its right to enforce any provision of this
|
176
|
-
Agreement at a subsequent time.
|
177
|
-
10.4. Entire Agreement; Amendments; Waivers. This Agreement constitutes the entire understanding and
|
178
|
-
agreement of the parties, whether written or oral, with respect to the subject matter hereof and supersede
|
179
|
-
all prior and contemporaneous agreements or understandings between the parties. Any term or provision
|
180
|
-
of this Agreement may be amended, and the observance of any term of this Agreement may be waived,
|
181
|
-
only by writing signed by the parties to be bound thereby.
|
182
|
-
10.5. Compliance with Law, Export Requirements and Foreign Reshipment Liability. Each party shall
|
183
|
-
comply with all applicable federal, state and local laws and regulations in connection with its performance
|
184
|
-
under this Agreement. Services, including documentation, may include controlled technology or technical
|
185
|
-
data (collectively “Controlled Technology”) that is subject to the U.S. Export Administration Regulations
|
186
|
-
(EAR), and diversion contrary to U.S. law is prohibited. You agree to comply with all relevant laws
|
187
|
-
including the U.S. EAR and the laws of any country from which Controlled Technology is exported. All
|
188
|
-
Controlled Technology is prohibited for export or re-export to Cuba, North Korea, Iran, Sudan and Syria
|
189
|
-
and to any country or its nationals subject to relevant embargo or sanction or to any entity or person for
|
190
|
-
which an export license is required per any relevant restricted party list, without first obtaining a license.
|
191
|
-
Furthermore, You hereby agree that You will not use or allow use of Controlled Technology in connection
|
192
|
-
with chemical, biological, or nuclear weapons, or missiles, drones or space launch vehicles capable of
|
193
|
-
delivering such weapons. Symantec shall have the right to suspend performance of any of its obligations
|
194
|
-
under this Agreement, without any prior notice being required and without any liability to Customer, if You
|
195
|
-
fail to comply with this provision.
|
196
|
-
10.6. Notices. You will make all notices, demands or requests to Symantec with respect to this Agreement
|
197
|
-
in writing to the "Contact" address listed on the website from where you downloaded the Root Certificates,
|
198
|
-
with a copy to: General Counsel – Legal Department, Symantec Corporation, 350 Ellis Street, Mountain
|
199
|
-
View, California 94043, USA. Notices shall be effective on the date received (unless the notice specifies a
|
200
|
-
later date) only if it is sent by a courier service that confirms delivery in writing or if sent by certified or
|
201
|
-
registered mail, postage prepaid, return receipt requested. Symantec may post notices and updates
|
202
|
-
regarding the Agreement or the Root Certificates at the URL provided to You for the Root Certificates.
|
203
|
-
You shall be responsible for regularly checking the applicable URL for notices from Symantec regarding
|
204
|
-
the Agreement or the Root Certificates. No notices, demands, or requests to Symantec with respect to
|
205
|
-
this Agreement may be delivered by electronic mail. You shall immediately notify Symantec of any legal
|
206
|
-
notices served on You that might affect Symantec, and shall promptly forward the original or a copy of
|
207
|
-
such notice to Symantec.
|
208
|
-
10.7. Independent Parties. The relationship between You and Symantec is that of independent
|
209
|
-
contractors. Neither party nor its employees, consultants, contractors, or agents are agents, employees,
|
210
|
-
or joint venturers of the other party, nor do they have any authority to bind the other party by contract or
|
211
|
-
otherwise to any obligation.
|
212
|
-
Root Certificate License Agreement v3.0 (January 2014)
|
213
|
-
```
|
26
|
+
For versions older than 7.0, please consult the `THIRD_PARTY_NOTICES.md`
|
27
|
+
document distributed with the agent. Any version of the agent not containing
|
28
|
+
that document are not thought to include any third party software.
|
@@ -25,6 +25,7 @@ require 'new_relic/agent/monitors'
|
|
25
25
|
require 'new_relic/agent/transaction_event_recorder'
|
26
26
|
require 'new_relic/agent/custom_event_aggregator'
|
27
27
|
require 'new_relic/agent/span_event_aggregator'
|
28
|
+
require 'new_relic/agent/log_event_aggregator'
|
28
29
|
require 'new_relic/agent/sampler_collection'
|
29
30
|
require 'new_relic/agent/javascript_instrumentor'
|
30
31
|
require 'new_relic/agent/vm/monotonic_gc_profiler'
|
@@ -73,6 +74,7 @@ module NewRelic
|
|
73
74
|
@transaction_event_recorder = TransactionEventRecorder.new @events
|
74
75
|
@custom_event_aggregator = CustomEventAggregator.new @events
|
75
76
|
@span_event_aggregator = SpanEventAggregator.new @events
|
77
|
+
@log_event_aggregator = LogEventAggregator.new @events
|
76
78
|
|
77
79
|
@connect_state = :pending
|
78
80
|
@connect_attempts = 0
|
@@ -146,6 +148,7 @@ module NewRelic
|
|
146
148
|
attr_reader :monotonic_gc_profiler
|
147
149
|
attr_reader :custom_event_aggregator
|
148
150
|
attr_reader :span_event_aggregator
|
151
|
+
attr_reader :log_event_aggregator
|
149
152
|
attr_reader :transaction_event_recorder
|
150
153
|
attr_reader :attribute_filter
|
151
154
|
attr_reader :adaptive_sampler
|
@@ -559,6 +562,7 @@ module NewRelic
|
|
559
562
|
@transaction_event_recorder.drop_buffered_data
|
560
563
|
@custom_event_aggregator.reset!
|
561
564
|
@span_event_aggregator.reset!
|
565
|
+
@log_event_aggregator.reset!
|
562
566
|
@sql_sampler.reset!
|
563
567
|
|
564
568
|
if Agent.config[:clear_transaction_state_after_fork]
|
@@ -580,6 +584,7 @@ module NewRelic
|
|
580
584
|
transmit_custom_event_data
|
581
585
|
transmit_error_event_data
|
582
586
|
transmit_span_event_data
|
587
|
+
transmit_log_event_data
|
583
588
|
end
|
584
589
|
end
|
585
590
|
|
@@ -607,6 +612,7 @@ module NewRelic
|
|
607
612
|
CUSTOM_EVENT_DATA = "custom_event_data".freeze
|
608
613
|
ERROR_EVENT_DATA = "error_event_data".freeze
|
609
614
|
SPAN_EVENT_DATA = "span_event_data".freeze
|
615
|
+
LOG_EVENT_DATA = "log_event_data".freeze
|
610
616
|
|
611
617
|
def create_and_run_event_loop
|
612
618
|
data_harvest = :"#{Agent.config[:data_report_period]}_second_harvest"
|
@@ -629,6 +635,9 @@ module NewRelic
|
|
629
635
|
@event_loop.on(interval_for SPAN_EVENT_DATA) do
|
630
636
|
transmit_span_event_data
|
631
637
|
end
|
638
|
+
@event_loop.on(interval_for LOG_EVENT_DATA) do
|
639
|
+
transmit_log_event_data
|
640
|
+
end
|
632
641
|
@event_loop.on(:reset_log_once_keys) do
|
633
642
|
::NewRelic::Agent.logger.clear_already_logged
|
634
643
|
end
|
@@ -893,6 +902,7 @@ module NewRelic
|
|
893
902
|
when :custom_event_data then @custom_event_aggregator
|
894
903
|
when :span_event_data then span_event_aggregator
|
895
904
|
when :sql_trace_data then @sql_sampler
|
905
|
+
when :log_event_data then @log_event_aggregator
|
896
906
|
end
|
897
907
|
end
|
898
908
|
|
@@ -1080,6 +1090,10 @@ module NewRelic
|
|
1080
1090
|
harvest_and_send_from_container(span_event_aggregator, :span_event_data)
|
1081
1091
|
end
|
1082
1092
|
|
1093
|
+
def harvest_and_send_log_event_data
|
1094
|
+
harvest_and_send_from_container(@log_event_aggregator, :log_event_data)
|
1095
|
+
end
|
1096
|
+
|
1083
1097
|
def check_for_and_handle_agent_commands
|
1084
1098
|
begin
|
1085
1099
|
@agent_command_router.check_for_and_handle_agent_commands
|
@@ -1120,6 +1134,11 @@ module NewRelic
|
|
1120
1134
|
transmit_single_data_type(:harvest_and_send_span_event_data, SPAN_EVENT)
|
1121
1135
|
end
|
1122
1136
|
|
1137
|
+
LOG_EVENT = "LogEvent".freeze
|
1138
|
+
def transmit_log_event_data
|
1139
|
+
transmit_single_data_type(:harvest_and_send_log_event_data, LOG_EVENT)
|
1140
|
+
end
|
1141
|
+
|
1123
1142
|
def transmit_single_data_type(harvest_method, supportability_name)
|
1124
1143
|
now = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
1125
1144
|
|
@@ -1146,6 +1165,7 @@ module NewRelic
|
|
1146
1165
|
harvest_and_send_slowest_sql
|
1147
1166
|
harvest_and_send_timeslice_data
|
1148
1167
|
harvest_and_send_span_event_data
|
1168
|
+
harvest_and_send_log_event_data
|
1149
1169
|
|
1150
1170
|
check_for_and_handle_agent_commands
|
1151
1171
|
harvest_and_send_for_agent_commands
|
@@ -1174,6 +1194,7 @@ module NewRelic
|
|
1174
1194
|
transmit_custom_event_data
|
1175
1195
|
transmit_error_event_data
|
1176
1196
|
transmit_span_event_data
|
1197
|
+
transmit_log_event_data
|
1177
1198
|
|
1178
1199
|
if @connected_pid == $$ && !@service.kind_of?(NewRelic::Agent::NewRelicService)
|
1179
1200
|
::NewRelic::Agent.logger.debug "Sending New Relic service agent run shutdown message"
|
@@ -6,6 +6,7 @@ require 'thread'
|
|
6
6
|
require 'logger'
|
7
7
|
require 'new_relic/agent/hostname'
|
8
8
|
require 'new_relic/agent/log_once'
|
9
|
+
require 'new_relic/agent/instrumentation/logger/instrumentation'
|
9
10
|
|
10
11
|
module NewRelic
|
11
12
|
module Agent
|
@@ -18,6 +19,7 @@ module NewRelic
|
|
18
19
|
create_log(root, override_logger)
|
19
20
|
set_log_level!
|
20
21
|
set_log_format!
|
22
|
+
disable_log_instrumentation!
|
21
23
|
|
22
24
|
gather_startup_logs
|
23
25
|
end
|
@@ -169,6 +171,11 @@ module NewRelic
|
|
169
171
|
end
|
170
172
|
end
|
171
173
|
|
174
|
+
# Don't allow agent logs into agent log forwarding for now
|
175
|
+
def disable_log_instrumentation!
|
176
|
+
NewRelic::Agent::Instrumentation::Logger.mark_skip_instrumenting(@log)
|
177
|
+
end
|
178
|
+
|
172
179
|
def gather_startup_logs
|
173
180
|
StartupLogger.instance.dump(self)
|
174
181
|
end
|
@@ -5,6 +5,7 @@
|
|
5
5
|
require 'logger'
|
6
6
|
require 'fileutils'
|
7
7
|
require 'new_relic/agent/hostname'
|
8
|
+
require 'new_relic/agent/instrumentation/logger/instrumentation'
|
8
9
|
|
9
10
|
module NewRelic
|
10
11
|
module Agent
|
@@ -70,6 +71,9 @@ module NewRelic
|
|
70
71
|
@log = NewRelic::Agent::NullLogger.new
|
71
72
|
end
|
72
73
|
|
74
|
+
# Never have agent log forwarding capture audits
|
75
|
+
NewRelic::Agent::Instrumentation::Logger.mark_skip_instrumenting(@log)
|
76
|
+
|
73
77
|
@log.formatter = create_log_formatter
|
74
78
|
end
|
75
79
|
|