Metadata-Version: 2.1
Name: nextapm
Version: 1.0.1
Summary: Monitor vercel serverless python api
Home-page: https://nextapm.dev
Author: Chan Anan
Author-email: chan@nextapm.dev
License: MIT
Platform: UNKNOWN
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests

# NextAPM

Monitor the python serverless functions deployed in vercel platform. You need https://nextapm.dev account to configure the monitor.

## Installation
Install agent module in your application
```
pip install nextapm
```

## Instrumentation
To monitor serverless api, import following module in all api files
```
// this should be in the first line
import nextapm;

from http.server import BaseHTTPRequestHandler
... your app code ...
````

## Configuration
Configure the following environment variables, you can get it from https://app.nextapm.dev after creating monitor

```
NEXTAPM_LICENSE_KEY
NEXTAPM_PROJECT_ID
```

## Restart/Redeploy
Restart/Redeploy your application and perform transactions

