Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove examples/api/ #2381

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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