Skip to main content

Monitor vercel serverless python api

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nextapm-1.0.1.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distributions

nextapm-1.0.1-py3.8.egg (18.3 kB view hashes)

Uploaded Source

nextapm-1.0.1-py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page