Skip to content

Restructure the repo for easier maintenance#87

Merged
Pierlou merged 9 commits intomainfrom
refactor/repo
Jan 7, 2026
Merged

Restructure the repo for easier maintenance#87
Pierlou merged 9 commits intomainfrom
refactor/repo

Conversation

@Pierlou
Copy link
Copy Markdown
Contributor

@Pierlou Pierlou commented Jan 6, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@bolinocroustibat bolinocroustibat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A long awaited refacto, thank you!

We have to be careful that the Dockerfiles in infra have to be adapted for the new entrypoints after those changes.

@Pierlou Pierlou merged commit 183a921 into main Jan 7, 2026
4 checks passed
@Pierlou Pierlou deleted the refactor/repo branch January 7, 2026 11:58
bolinocroustibat added a commit that referenced this pull request Feb 2, 2026
…ing (#91)

# Fix Sentry performance tracking

## Problem

After PR #87, Sentry
performance tracking stopped working while error tracking continued to
function normally.

## Possible Cause

The `AioHttpIntegration()` instance was being created at module import
time in `api_tabular/core/sentry.py` (when the `sentry_kwargs`
dictionary was defined). This likely happened before `sentry_sdk.init()`
was called in the app modules, which may have prevented the integration
from properly hooking into aiohttp's internals for performance tracking.

Error tracking might have been still working because it doesn't require
the same level of framework instrumentation - errors can be captured
through exception handlers without needing to instrument the
request/response cycle.

## Solution

Converted `sentry_kwargs` from a module-level dictionary to a
`get_sentry_kwargs()` function that creates a fresh
`AioHttpIntegration()` instance each time it's called. This ensures the
integration is instantiated right when `sentry_sdk.init()` is called,
matching the original behavior before the refactor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants