Skip to content

Commit 2a377e6

Browse files
committed
Added datadog logging.
1 parent 038b861 commit 2a377e6

File tree

5 files changed

+157
-25
lines changed

5 files changed

+157
-25
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ update: env
4646

4747
.PHONY: format
4848
format: env
49-
$(shell . .venv/bin/activate && isort -rc ./)
49+
$(shell . .venv/bin/activate && isort ./)
5050
$(shell . .venv/bin/activate && black ./)
5151

5252

flask_wtforms_tutorial/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
"""Initialize app."""
2+
from ddtrace import patch_all
23
from flask import Flask
34

5+
patch_all()
6+
47

58
def create_app():
69
"""Construct the core flask_wtforms_tutorial."""

poetry.lock

Lines changed: 145 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ flask-wtf = "*"
2424
python-dotenv = "*"
2525
email_validator = "*"
2626
uWSGI = "^2.0.19"
27+
ddtrace = "^0.44.0"
2728

2829
[tool.poetry.dev-dependencies]
2930
lesscpy = "*"

requirements.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
click==7.1.2; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
2+
ddtrace==0.44.0; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")
23
dnspython==2.0.0; python_version >= "3.6"
34
email-validator==1.1.2
45
flask-wtf==0.14.3
56
flask==1.1.2; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")
67
idna==2.10; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.4.0"
8+
intervaltree==3.1.0; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
79
itsdangerous==1.1.0; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
810
jinja2==2.11.2; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
911
markupsafe==1.1.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
12+
protobuf==3.14.0; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
1013
python-dotenv==0.15.0
14+
six==1.15.0; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
15+
sortedcontainers==2.3.0; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
16+
tenacity==6.2.0; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
17+
uwsgi==2.0.19.1
1118
werkzeug==1.0.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
1219
wtforms==2.3.3

0 commit comments

Comments
 (0)