Skip to content

Commit

Permalink
docs(cfw): Add better prerequisites explanation (#3633)
Browse files Browse the repository at this point in the history
docs(cfw): Add better prereqs and npx guide
  • Loading branch information
adnanrahic committed Feb 13, 2024
1 parent 96357df commit 75e769b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/docs/examples-tutorials/recipes.mdx
Expand Up @@ -37,6 +37,7 @@ These recipes show how to trigger Tracetest test runs with message queues like K
These recipes show how to run tests against Serverless Functions with Tracetest.

- [Testing Vercel Functions with OpenTelemetry](/examples-tutorials/recipes/testing-vercel-functions-with-opentelemetry-tracetest)
- [Testing Cloudflare Workers with OpenTelemetry](/examples-tutorials/recipes/testing-cloudflare-workers-with-opentelemetry-tracetest)

## Trace Data Stores

Expand Down
Expand Up @@ -52,6 +52,9 @@ The Cloudflare Worker will fetch data from an external API, transform the data a
- Create an [environment](/concepts/environments).
- Create an [environment token](/concepts/environment-tokens).
- Have access to the environment's [agent API key](/configuration/agent).

### Cloudflare Account

- [Cloudflare Workers Account](https://workers.cloudflare.com/)
- [Cloudflare D1 Database](https://developers.cloudflare.com/d1/get-started/)

Expand All @@ -70,6 +73,18 @@ Before moving forward, run `npm i` in the root folder to install the dependencie
npm i
```

If you do not have [`npx`](https://www.npmjs.com/package/npx) installed, install it first.

```bash title=Terminal
npm i npx -g
```

Run the command to login to your Cloudflare Workers account.

```bash title=Terminal
npx wrangler login
```

Run the command to create a D1 database both locally and in your Cloudflare Workers account.

```bash title=Terminal
Expand Down

0 comments on commit 75e769b

Please sign in to comment.