Skip to content

Web Framework support python #441

Locked Answered by EyelynSu
c-14795 asked this question in Q&A
May 10, 2022 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

Hello~
Welcome to user pinpoint!
fast api -> Do you mean the Framework FastAPI ?
We have only released the middleware for FastAPI till now.
FastAPI middleware, please ref to https://github.com/pinpoint-apm/pinpoint-c-agent/tree/master/plugins/PY/pinpointPy/Fastapi

How to use:

from pinpointPy import monkey_patch_for_pinpoint, set_agent
from starlette.middleware import Middleware
from pinpointPy.Fastapi.middleware import PinPointMiddleWare

middleware = [
    Middleware(PinPointMiddleWare)
]
app = FastAPI(middleware=middleware)
server = Server()

# enable auto-interceptor plugins
monkey_patch_for_pinpoint()

# set pinpoint related environment
# signature: set_agent(app_id_str: str, app_name…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@c-14795
Comment options

@EyelynSu
Comment options

@c-14795
Comment options

@EyelynSu
Comment options

@eeliu
Comment options

Answer selected by c-14795
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants