Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ jobs:
cache: pip

- name: Install dependencies
run: pip install fastapi uvicorn httpx pytest pytest-cov pydantic prometheus-fastapi-instrumentator
run: pip install fastapi uvicorn httpx pytest pytest-cov pydantic prometheus-fastapi-instrumentator structlog prometheus-fastapi-instrumentator structlog

- name: Run Assignment 12 tests
working-directory: "Assignment 12"
Expand Down
3 changes: 1 addition & 2 deletions Assignment 12/api/logging_config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import structlog
import logging
import sys

def configure_logging():
Expand All @@ -20,4 +19,4 @@ def configure_logging():
)

def get_logger(name: str = __name__):
return structlog.get_logger(name)
return structlog.get_logger(name)
2 changes: 1 addition & 1 deletion Assignment 12/handlers/routes/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def submit_transaction(
)
# ── Increment metrics ──
transactions_total.labels(channel=body.channel).inc()

return TransactionResponse.from_domain(txn)
except Exception as e:
raise _handle_service_errors(e)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ pydantic==2.10.3

# Build / packaging (CD pipeline)
build==1.2.2
wheel==0.45.1
wheel==0.45.1structlog
Loading