feat: add support for OTEL logs

feat: add support for OTEL logs
This commit is contained in:
2024-01-18 18:37:41 +01:00
parent 1a3cf1c2e0
commit 192cfb9b73
7 changed files with 131 additions and 12 deletions

View File

@@ -5,6 +5,10 @@ monolog:
when@dev:
monolog:
handlers:
otel: # Tohle bych v realny aplikaci nepouzil na devu
type: service
id: App\Bridge\Monolog\Handler\SymfonyOtelHandler
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
@@ -40,6 +44,9 @@ when@test:
when@prod:
monolog:
handlers:
otel:
type: service
id: App\Bridge\Monolog\Handler\SymfonyOtelHandler
main:
type: fingers_crossed
action_level: error