Skip to content

feat/Add in fastapi otel middleware #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.0.3

### Features

* **OTEL middleware added**


## 0.0.2

### Enhancements
Expand Down
2 changes: 2 additions & 0 deletions requirements/cli.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ uvicorn
fastapi
click
unstructured-ingest
opentelemetry-instrumentation-fastapi
opentelemetry-exporter-otlp-proto-grpc
267 changes: 95 additions & 172 deletions requirements/cli.txt
Original file line number Diff line number Diff line change
@@ -1,213 +1,136 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile cli.in
# pip-compile requirements//cli.in
#
annotated-types==0.7.0
# via pydantic
anyio==4.4.0
# via
# httpx
# starlette
# watchfiles
backoff==2.2.1
# via unstructured
beautifulsoup4==4.12.3
# via unstructured
certifi==2024.7.4
# via
# httpcore
# httpx
# requests
# unstructured-client
chardet==5.2.0
# via unstructured
charset-normalizer==3.3.2
# via
# requests
# unstructured-client
# via starlette
asgiref==3.8.1
# via opentelemetry-instrumentation-asgi
click==8.1.7
# via
# -r cli.in
# nltk
# typer
# -r requirements//cli.in
# unstructured-ingest
# uvicorn
dataclasses-json==0.6.7
# via
# unstructured
# unstructured-client
deepdiff==7.0.1
# via unstructured-client
dnspython==2.6.1
# via email-validator
email-validator==2.2.0
# via fastapi
emoji==2.12.1
# via unstructured
fastapi==0.111.1
# via -r cli.in
fastapi-cli==0.0.4
# via fastapi
filetype==1.2.0
# via unstructured
# via unstructured-ingest
deprecated==1.2.14
# via
# opentelemetry-api
# opentelemetry-exporter-otlp-proto-grpc
# opentelemetry-semantic-conventions
exceptiongroup==1.2.2
# via anyio
fastapi==0.112.2
# via -r requirements//cli.in
googleapis-common-protos==1.65.0
# via opentelemetry-exporter-otlp-proto-grpc
grpcio==1.66.0
# via opentelemetry-exporter-otlp-proto-grpc
h11==0.14.0
# via
# httpcore
# uvicorn
httpcore==1.0.5
# via httpx
httptools==0.6.1
# via uvicorn
httpx==0.27.0
# via
# fastapi
# unstructured-client
idna==3.7
# via
# anyio
# email-validator
# httpx
# requests
# unstructured-client
jinja2==3.1.4
# via fastapi
joblib==1.4.2
# via nltk
jsonpath-python==1.0.6
# via unstructured-client
langdetect==1.0.9
# via unstructured
lxml==5.2.2
# via unstructured
markdown-it-py==3.0.0
# via rich
markupsafe==2.1.5
# via jinja2
marshmallow==3.21.3
# via
# dataclasses-json
# unstructured-client
mdurl==0.1.2
# via markdown-it-py
idna==3.8
# via anyio
importlib-metadata==8.0.0
# via opentelemetry-api
marshmallow==3.22.0
# via dataclasses-json
mypy-extensions==1.0.0
# via typing-inspect
numpy==2.1.0
# via pandas
opentelemetry-api==1.26.0
# via
# opentelemetry-exporter-otlp-proto-grpc
# opentelemetry-instrumentation
# opentelemetry-instrumentation-asgi
# opentelemetry-instrumentation-fastapi
# opentelemetry-sdk
# opentelemetry-semantic-conventions
opentelemetry-exporter-otlp-proto-common==1.26.0
# via opentelemetry-exporter-otlp-proto-grpc
opentelemetry-exporter-otlp-proto-grpc==1.26.0
# via -r requirements//cli.in
opentelemetry-instrumentation==0.47b0
# via
# opentelemetry-instrumentation-asgi
# opentelemetry-instrumentation-fastapi
opentelemetry-instrumentation-asgi==0.47b0
# via opentelemetry-instrumentation-fastapi
opentelemetry-instrumentation-fastapi==0.47b0
# via -r requirements//cli.in
opentelemetry-proto==1.26.0
# via
# opentelemetry-exporter-otlp-proto-common
# opentelemetry-exporter-otlp-proto-grpc
opentelemetry-sdk==1.26.0
# via
# opentelemetry-exporter-otlp-proto-grpc
# unstructured-ingest
opentelemetry-semantic-conventions==0.47b0
# via
# typing-inspect
# unstructured-client
nest-asyncio==1.6.0
# via unstructured-client
nltk==3.8.1
# via unstructured
numpy==1.26.4
# opentelemetry-instrumentation-asgi
# opentelemetry-instrumentation-fastapi
# opentelemetry-sdk
opentelemetry-util-http==0.47b0
# via
# pandas
# unstructured
ordered-set==4.1.0
# via deepdiff
# opentelemetry-instrumentation-asgi
# opentelemetry-instrumentation-fastapi
packaging==24.1
# via
# marshmallow
# unstructured-client
# via marshmallow
pandas==2.2.2
# via unstructured-ingest
psutil==6.0.0
# via unstructured
protobuf==4.25.4
# via
# googleapis-common-protos
# opentelemetry-proto
pydantic==2.8.2
# via fastapi
# via
# fastapi
# unstructured-ingest
pydantic-core==2.20.1
# via pydantic
pygments==2.18.0
# via rich
pypdf==4.3.1
# via unstructured-client
python-dateutil==2.9.0.post0
# via
# pandas
# unstructured-client
# unstructured-ingest
python-dotenv==1.0.1
# via uvicorn
python-iso639==2024.4.27
# via unstructured
python-magic==0.4.27
# via unstructured
python-multipart==0.0.9
# via fastapi
pytz==2024.1
# via pandas
pyyaml==6.0.1
# via uvicorn
rapidfuzz==3.9.5
# via unstructured
regex==2024.7.24
# via nltk
requests==2.32.3
# via
# requests-toolbelt
# unstructured
# unstructured-client
requests-toolbelt==1.0.0
# via unstructured-client
rich==13.7.1
# via typer
shellingham==1.5.4
# via typer
six==1.16.0
# via
# langdetect
# python-dateutil
# unstructured-client
# via python-dateutil
sniffio==1.3.1
# via
# anyio
# httpx
soupsieve==2.5
# via beautifulsoup4
starlette==0.37.2
# via anyio
starlette==0.38.2
# via fastapi
tabulate==0.9.0
# via unstructured
tqdm==4.66.4
# via
# nltk
# unstructured
typer==0.12.3
# via fastapi-cli
tqdm==4.66.5
# via unstructured-ingest
typing-extensions==4.12.2
# via
# emoji
# anyio
# asgiref
# fastapi
# opentelemetry-sdk
# pydantic
# pydantic-core
# typer
# typing-inspect
# unstructured
# unstructured-client
# uvicorn
typing-inspect==0.9.0
# via
# dataclasses-json
# unstructured-client
# via dataclasses-json
tzdata==2024.1
# via pandas
unstructured==0.15.0
# via unstructured-ingest
unstructured-client==0.25.0
# via unstructured
unstructured-ingest==0.0.0
# via -r cli.in
urllib3==2.2.2
# via
# requests
# unstructured-client
uvicorn[standard]==0.30.3
# via
# -r cli.in
# fastapi
uvloop==0.19.0
# via uvicorn
watchfiles==0.22.0
# via uvicorn
websockets==12.0
# via uvicorn
unstructured-ingest==0.0.8
# via -r requirements//cli.in
uvicorn==0.30.6
# via -r requirements//cli.in
wrapt==1.16.0
# via unstructured
# via
# deprecated
# opentelemetry-instrumentation
zipp==3.20.1
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# setuptools
2 changes: 1 addition & 1 deletion requirements/constraints.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
unstructured-ingest==0.0.0
unstructured-ingest==0.0.8
10 changes: 5 additions & 5 deletions requirements/lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
#
autoflake==2.3.1
# via -r requirements//lint.in
black==24.4.2
black==24.8.0
# via -r requirements//lint.in
click==8.1.7
# via black
flake8==7.1.0
flake8==7.1.1
# via
# -r requirements//lint.in
# flake8-print
flake8-print==5.0.0
# via -r requirements//lint.in
mccabe==0.7.0
# via flake8
mypy==1.10.1
mypy==1.11.2
# via -r requirements//lint.in
mypy-extensions==1.0.0
# via
Expand All @@ -30,15 +30,15 @@ pathspec==0.12.1
# via black
platformdirs==4.2.2
# via black
pycodestyle==2.12.0
pycodestyle==2.12.1
# via
# flake8
# flake8-print
pyflakes==3.2.0
# via
# autoflake
# flake8
ruff==0.5.0
ruff==0.6.2
# via -r requirements//lint.in
tomli==2.0.1
# via
Expand Down
Loading
Loading