Skip to content
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

WIP: Support for Sentry.io #469

Closed
wants to merge 201 commits into from
Closed

WIP: Support for Sentry.io #469

wants to merge 201 commits into from

Conversation

mejroslav
Copy link
Contributor

@mejroslav mejroslav commented Aug 9, 2023

Support for Sentry SDK

This is only POC, but it seems that it works and looks quite cool 🍀

Example

[sentry]
enabled=true
dns=https://user@pass.ingest.sentry.io/ahoj
#!/usr/bin/env python3
import logging
import asab

L = logging.getLogger(__name__)


class MyApplication(asab.Application):
	async def main(self):
		print(asab.Config.get("sentry", "enabled"))
		L.warning("Warning from ASAB app!", struct_data={
			"bread": "butter"
		})
		L.error("This is ASAB error!")

		x = 22 / 0
		self.stop()


if __name__ == "__main__":
	app = MyApplication()
	app.run()

Sentry.io

image

image

@mejroslav mejroslav added the enhancement New feature or request label Aug 9, 2023
@mejroslav mejroslav self-assigned this Aug 9, 2023
@ateska
Copy link
Contributor

ateska commented Aug 9, 2023

Looks cool :-)

@mejroslav mejroslav closed this Aug 11, 2023
@mejroslav mejroslav deleted the feature/sentry branch August 11, 2023 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants