Skip to content

Instantly share code, notes, and snippets.

@basepi
Created February 1, 2023 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save basepi/fa25bd20a800d875832a13c629dafd3e to your computer and use it in GitHub Desktop.
Save basepi/fa25bd20a800d875832a13c629dafd3e to your computer and use it in GitHub Desktop.
tiny python app
pip install -r requirements.txt
flask run
elasticapm-run flask run
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello_world():
import elasticapm
transaction = elasticapm.get_trace_id()
return f"<p>Hello, World! Transaction: {transaction}</p>"
flask
blinker
elastic-apm>=6.14.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment