Skip to content

brandiqa/appsignal-debug-worker

👷 AppSignal Debug Worker

A Cloudflare Workers project demonstrating how to use AppSignal to debug code.

Prerequisites

You'll need the following to run this code:

  1. Sign up for a 30 day trial account at AppSignal and acquire an API key
  2. Node version 16.13.0 or higher
  3. Cloudflare account
  4. Wrangler CLI installed and authenticated with your Cloudflare account
  5. Visual Studio Code editor with REST Client extension installed

Setup

Clone the repository to your workspace then execute the following:

# 1. Navigate to project folder/Open in VS Code then access terminal
cd appsignal-debug-worker/

# 2. Set the APPSIGNAL_API secret in `.dev.vars` file - this will be used in development
APPSIGNAL_API="replace with your API key"

# 3. For the deployed worder, upload your AppSignal API Key
wrangler secret put APPSIGNAL_API

# 4. Install package dependencies
npm install

# 5. Launch the dev server
npm start

# 6. Execute HTTP Commands located in rest.http file

# 7. To publish the app
npm run deploy
```

## License

Copyright © 2021 Michael Wanyoike

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
```

About

Debugging Cloudflare Workers project with AppSignal

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published