-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove examples/api/ (#2381)
- Loading branch information
1 parent
b878930
commit fb964de
Showing
15 changed files
with
2 additions
and
547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
22
examples/api/background-transactions/example-addCustomAttribute.js
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
examples/api/background-transactions/example-addCustomAttributes.js
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
examples/api/background-transactions/example-addCustomSpanAttribute.js
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
examples/api/background-transactions/example-addCustomSpanAttributes.js
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
examples/api/background-transactions/example-recordCustomEvent.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.