Compare commits

...

5 Commits

Author SHA1 Message Date
Brock H Caldwell
a3408d9852 fix: include release with sentry 2025-11-05 20:31:43 -06:00
Brock H Caldwell
0048423a46 fix: sets tracing sample to 1 2025-11-05 14:13:14 -06:00
Brock H Caldwell
2468e4d5b6 fix: adds more sentry config 2025-11-05 11:35:19 -06:00
Brock H Caldwell
445224d368 fix: error twig template 2025-11-05 11:23:57 -06:00
Brock H Caldwell
9a660279be fix: sentry 2025-11-05 00:12:32 -06:00
2 changed files with 35 additions and 32 deletions

View File

@@ -1,36 +1,40 @@
when@prod: when@prod:
sentry: sentry:
dsn: '%env(SENTRY_DSN)%' register_error_listener: true # Disables the ErrorListener to avoid duplicated log in sentry
register_error_handler: true # Disables the ErrorListener, ExceptionListener and FatalErrorListener integrations of the base PHP SDK
options: options:
# Add request headers, cookies, IP address and the authenticated user release: '%env(APP_VERSION)%'
# see https://docs.sentry.io/platforms/php/data-management/data-collected/ for more info traces_sample_rate: 1
# send_default_pii: true profiles_sample_rate: 1
ignore_exceptions: attach_stacktrace: true
- 'Symfony\Component\ErrorHandler\Error\FatalError'
- 'Symfony\Component\Debug\Exception\FatalErrorException' tracing:
# enabled: true
# # If you are using Monolog, you also need this additional configuration to log the errors correctly: dbal: # DB queries
# # https://docs.sentry.io/platforms/php/guides/symfony/#monolog-integration enabled: true
register_error_listener: false cache: # cache pools
register_error_handler: false enabled: true
# twig: # templating engine
enabled: true
services:
# (Optionally) Configure the breadcrumb handler as a service (needed for the breadcrumb Monolog handler)
Sentry\Monolog\BreadcrumbHandler:
arguments:
- '@Sentry\State\HubInterface'
- !php/const Monolog\Logger::INFO # Configures the level of messages to capture as breadcrumbs
monolog: monolog:
handlers: handlers:
# # Use this only if you don't want to use structured logging and instead receive # (Optionally) Register the breadcrumb handler as a Monolog handler
# # certain log levels as errors. sentry_breadcrumbs:
# sentry:
# type: sentry
# level: !php/const Monolog\Logger::ERROR
# hub_id: Sentry\State\HubInterface
# fill_extra_context: true # Enables sending monolog context to Sentry
# process_psr_3_messages: false # Disables the resolution of PSR-3 placeholders
#
# # Use this for structured log integration
sentry_logs:
type: service type: service
id: Sentry\SentryBundle\Monolog\LogsHandler name: sentry_breadcrumbs
# id: Sentry\Monolog\BreadcrumbHandler
services: # Register the handler as a Monolog handler to capture messages as events
Sentry\SentryBundle\Monolog\LogsHandler: sentry:
arguments: type: sentry
- !php/const Monolog\Logger::INFO level: !php/const Monolog\Logger::ERROR # Configures the level of messages to capture as events
hub_id: Sentry\State\HubInterface
fill_extra_context: true # Enables sending monolog context to Sentry
process_psr_3_messages: false # Disables the resolution of PSR-3 placeholders in reported messages

View File

@@ -1,11 +1,10 @@
{% extends 'bare.html.twig' %} {% extends 'bare.html.twig' %}
{% block body %} {% block body %}
<h2 class="px-4 py-4 text-3xl font-extrabold text-orange-500">{{ }}</h2> <h2 class="px-4 py-4 text-3xl font-extrabold text-orange-500">500</h2>
<div class="flex flex-col bg-orange-500/50 p-4 rounded-lg gap-4 w-full md:w-[420px] border-orange-500 border-2 text-gray-50 animate-fade"> <div class="flex flex-col bg-orange-500/50 p-4 rounded-lg gap-4 w-full md:w-[420px] border-orange-500 border-2 text-gray-50 animate-fade">
<div class="flex flex-col m-0 text-center"> <div class="flex flex-col m-0 text-center">
<h3 class="text-2xl text-bold text-center text-gray-50">Oh crap!</h3> <h3 class="text-2xl text-bold text-center text-gray-50">Oh crap!</h3>
<small>(or is it?)</small>
</div> </div>
<p class="mb-2">There are many things I'm capable of, but this ain't one of 'em!</p> <p class="mb-2">There are many things I'm capable of, but this ain't one of 'em!</p>
<pre class="bg-gray-800 text-white p-4 rounded-md overflow-x-auto"> <pre class="bg-gray-800 text-white p-4 rounded-md overflow-x-auto">