Skip to content

feat(integrations): Add Lilya integration#6801

Open
tarsil wants to merge 1 commit into
getsentry:masterfrom
tarsil:feat/llilya-support
Open

feat(integrations): Add Lilya integration#6801
tarsil wants to merge 1 commit into
getsentry:masterfrom
tarsil:feat/llilya-support

Conversation

@tarsil

@tarsil tarsil commented Jul 12, 2026

Copy link
Copy Markdown

Description

Add first-class Lilya framework integration with automatic ASGI instrumentation, route-based transaction names, handled HTTP exception capture, request data extraction, authenticated user propagation, and optional middleware spans.

The integration uses Lilya-native hooks only, registers the lilya extra and typing dependency, and adds generated tox/CI coverage for Lilya 0.27.0.

Validated with:

  • uv run tox -e py3.14-lilya-v0.27.0
  • uv run tox -e py3.14-lilya-latest
  • uv run ruff check sentry_sdk/integrations/lilya.py sentry_sdk/integrations/asgi.py tests/integrations/lilya/test_lilya.py
  • uv run ruff format --check sentry_sdk/integrations/lilya.py sentry_sdk/integrations/asgi.py tests/integrations/lilya/test_lilya.py

@tarsil tarsil requested a review from a team as a code owner July 12, 2026 12:39
Comment thread sentry_sdk/integrations/lilya.py Outdated
Comment thread sentry_sdk/integrations/lilya.py
Comment thread sentry_sdk/integrations/lilya.py Outdated
@tarsil tarsil force-pushed the feat/llilya-support branch from 8b3f11b to 881d8e9 Compare July 12, 2026 12:51
Comment thread sentry_sdk/integrations/lilya.py Outdated
Comment thread sentry_sdk/integrations/lilya.py Outdated
Comment thread sentry_sdk/integrations/lilya.py
@tarsil tarsil force-pushed the feat/llilya-support branch from 881d8e9 to dc867d5 Compare July 12, 2026 13:02
Comment thread sentry_sdk/integrations/lilya.py Outdated
Comment thread sentry_sdk/integrations/lilya.py Outdated
Comment thread sentry_sdk/integrations/asgi.py Outdated
@tarsil tarsil force-pushed the feat/llilya-support branch from dc867d5 to a372751 Compare July 12, 2026 13:25
Comment thread sentry_sdk/integrations/lilya.py
Comment thread sentry_sdk/integrations/lilya.py
@tarsil tarsil force-pushed the feat/llilya-support branch from a372751 to cc83058 Compare July 12, 2026 13:34
Comment thread sentry_sdk/integrations/lilya.py Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit cc83058. Configure here.

Comment thread sentry_sdk/integrations/lilya.py Outdated
Add first-class Lilya framework instrumentation for route transaction names, request data, handled HTTP exceptions, authenticated users, and middleware spans.

Add end-to-end Lilya integration tests plus generated tox and CI matrix entries.
@tarsil tarsil force-pushed the feat/llilya-support branch from cc83058 to c8fa784 Compare July 12, 2026 13:50
@tarsil tarsil changed the title feat(lilya): Add Lilya integration feat(integrations): Add Lilya integration Jul 13, 2026
@tarsil

tarsil commented Jul 13, 2026

Copy link
Copy Markdown
Author

@sl0thentr0py apologies for tagging you but I don't want this to get lost here since this is a framework that is actually being used by some financial institutions worldwide and I always workaround to make it work but it would be great if we could natively have this in sentry?

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.

1 participant