newrelic 6.13.0 → 6.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +3 -3
- package/NEWS.md +14 -0
- package/README.md +4 -4
- package/lib/collector/serverless.js +3 -2
- package/package.json +1 -1
- package/CODE_OF_CONDUCT.md +0 -5
package/CONTRIBUTING.md
CHANGED
|
@@ -20,9 +20,9 @@ licensing restrictions.
|
|
|
20
20
|
|
|
21
21
|
### Code of Conduct
|
|
22
22
|
|
|
23
|
-
Before contributing please read the [code of conduct](
|
|
23
|
+
Before contributing please read the [code of conduct](https://github.com/newrelic/.github/blob/main/CODE_OF_CONDUCT.md)
|
|
24
24
|
|
|
25
|
-
Note that our [code of conduct](
|
|
25
|
+
Note that our [code of conduct](https://github.com/newrelic/.github/blob/main/CODE_OF_CONDUCT.md) applies to all platforms
|
|
26
26
|
and venues related to this project; please follow it in all your interactions
|
|
27
27
|
with the project and its participants.
|
|
28
28
|
|
|
@@ -53,7 +53,7 @@ When contributing, keep in mind that New Relic customers (that's you!) are runni
|
|
|
53
53
|
|
|
54
54
|
Be aware that the instrumentation needs to work with a wide range of versions of the instrumented modules, and that code that looks nonsensical or overcomplicated may be that way for compatibility-related reasons. Read all the comments and check the related tests before deciding whether existing code is incorrect.
|
|
55
55
|
|
|
56
|
-
If you’re planning on contributing a new feature or an otherwise complex contribution, we kindly ask you to start a conversation with the maintainer team by opening up an Github issue first.
|
|
56
|
+
If you’re planning on contributing a new feature or an otherwise complex contribution, we kindly ask you to start a conversation with the maintainer team by opening up an Github issue first.
|
|
57
57
|
|
|
58
58
|
### General Guidelines
|
|
59
59
|
|
package/NEWS.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 6.13.1 (2020-09-24):
|
|
2
|
+
|
|
3
|
+
* Fixed named-pipe check for lambda invocations to avoid race-condition.
|
|
4
|
+
|
|
5
|
+
Named-pipe existence will now be checked just prior to first write and then cached.
|
|
6
|
+
|
|
7
|
+
* Updated README with community-plus header.
|
|
8
|
+
|
|
9
|
+
* Updated README config copy example.
|
|
10
|
+
|
|
11
|
+
* Added Open Source Policy workflow.
|
|
12
|
+
|
|
13
|
+
* Removed repository CoC in favor of centralized CoC at org root.
|
|
14
|
+
|
|
1
15
|
### 6.13.0 (2020-08-25):
|
|
2
16
|
|
|
3
17
|
* Added ability for the agent to write to a named pipe, instead of stdout, when in serverless mode.
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[](https://opensource.newrelic.com/oss-category/#community-plus)
|
|
2
2
|
|
|
3
3
|
# New Relic's Node.js agent [![Server Smoke Tests][3]][4] [![Node Agent CI][5]][6]
|
|
4
4
|
|
|
@@ -20,11 +20,11 @@ To use New Relic's Node.js agent entails these three steps, which are described
|
|
|
20
20
|
|
|
21
21
|
1. To install the agent for performance monitoring, use your favorite npm-based package manager and install the `newrelic` package into your application:
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
`$ npm install newrelic`
|
|
24
24
|
|
|
25
25
|
2. Then, copy the stock configuration file to your program's base folder:
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
`$ cp ./node_modules/newrelic/newrelic.js ./<your destination>`
|
|
28
28
|
|
|
29
29
|
3. Now, add your New Relic license key and application/service name to that file:
|
|
30
30
|
|
|
@@ -172,4 +172,4 @@ The Node.js agent also uses source code from third-party libraries. You can find
|
|
|
172
172
|
[3]: https://github.com/newrelic/node-newrelic/workflows/Server%20Smoke%20Tests/badge.svg
|
|
173
173
|
[4]: https://github.com/newrelic/node-newrelic/actions?query=workflow%3A%22Server+Smoke+Tests%22
|
|
174
174
|
[5]: https://github.com/newrelic/node-newrelic/workflows/Node%20Agent%20CI/badge.svg
|
|
175
|
-
[6]: https://github.com/newrelic/node-newrelic/actions?query=workflow%3A%22Node+Agent+CI%22
|
|
175
|
+
[6]: https://github.com/newrelic/node-newrelic/actions?query=workflow%3A%22Node+Agent+CI%22
|
|
@@ -39,7 +39,6 @@ class ServerlessCollector {
|
|
|
39
39
|
}
|
|
40
40
|
this.payload = {}
|
|
41
41
|
this.pipePath = pipePath || process.env.NEWRELIC_PIPE_PATH || defaultPipePath
|
|
42
|
-
this.shouldUsePipe = fs.existsSync(this.pipePath)
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
/**
|
|
@@ -256,7 +255,6 @@ class ServerlessCollector {
|
|
|
256
255
|
fs.writeFileSync(this.pipePath, payload)
|
|
257
256
|
return true
|
|
258
257
|
} catch (e) {
|
|
259
|
-
this.shouldUsePipe = false
|
|
260
258
|
logger.warn('Error attempting to write to pipe, falling back to stdout', e)
|
|
261
259
|
return false
|
|
262
260
|
}
|
|
@@ -294,6 +292,9 @@ class ServerlessCollector {
|
|
|
294
292
|
payload
|
|
295
293
|
]) + '\n'
|
|
296
294
|
|
|
295
|
+
if (this.shouldUsePipe === undefined) {
|
|
296
|
+
this.shouldUsePipe = fs.existsSync(this.pipePath)
|
|
297
|
+
}
|
|
297
298
|
const didUsePipe = this.shouldUsePipe && this.flushToPipeSync(serializedPayload)
|
|
298
299
|
|
|
299
300
|
if (!didUsePipe) {
|
package/package.json
CHANGED
package/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
### Hello! We're glad you've joined us.
|
|
2
|
-
|
|
3
|
-
We believe participation in our community should be a harassment free experience for everyone.
|
|
4
|
-
|
|
5
|
-
Learn more about our guidelines and principles by reading our [Code of Conduct](https://opensource.newrelic.com/code-of-conduct/) on our Open Source Website.
|