Skip to content

Commit

Permalink
refactor: remove examples/api/ (#2381)
Browse files Browse the repository at this point in the history
  • Loading branch information
amychisholm03 authored Jul 22, 2024
1 parent b878930 commit fb964de
Show file tree
Hide file tree
Showing 15 changed files with 2 additions and 547 deletions.
14 changes: 2 additions & 12 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
# node-newrelic examples

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:
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.

```bash
$ mkdir node-newrelic-examples
$ cd node-newrelic-examples
$ npm i newrelic
$ cp node_modules/newrelic/newrelic.js .
$ # edit newrelic.js with your configuration details, like app name
$ wget https://raw.githubusercontent.com/newrelic/node-newrelic/main/examples/api/background-transactions/example1-basic.js
$ node example1-basic.js
```

Metrics generated by the examples will then show up in your New Relic One interface.
The *shim* subdirectory and its revised contents will also be moved over to newrelic-node-examples at a later date.

To request additional examples, please [file an issue](https://github.com/newrelic/node-newrelic/issues)!
22 changes: 0 additions & 22 deletions examples/api/background-transactions/example-addCustomAttribute.js

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions examples/api/background-transactions/example-recordCustomEvent.js

This file was deleted.

41 changes: 0 additions & 41 deletions examples/api/background-transactions/example1-basic.js

This file was deleted.

33 changes: 0 additions & 33 deletions examples/api/background-transactions/example2-grouping.js

This file was deleted.

17 changes: 0 additions & 17 deletions examples/api/background-transactions/example3-results.js

This file was deleted.

51 changes: 0 additions & 51 deletions examples/api/background-transactions/example4-promises.js

This file was deleted.

49 changes: 0 additions & 49 deletions examples/api/distributed-tracing/example1-background.js

This file was deleted.

Loading

0 comments on commit fb964de

Please sign in to comment.