Skip to content

Commit d18aa55

Browse files
committed
Release v1.6.0: tags, before_send, spans, and non-blocking transport.
Ship Phase 3.3–3.5: Scope tags, before_send, Doctrine/HttpClient instrumentation, transport.mode sync/async/messenger, and Composer-versioned User-Agent.
1 parent c453f7f commit d18aa55

44 files changed

Lines changed: 2486 additions & 471 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.symfony/recipe/nowo-tech/beacon-bundle/1.0/config/packages/nowo_beacon.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ nowo_beacon:
1010
environment: '%kernel.environment%'
1111
release: '%env(string:default::BEACON_RELEASE)%'
1212
verify_peer: true
13+
# transport:
14+
# mode: sync # sync | async | messenger
1315
# Set false only for local self-signed HTTPS:
1416
# when@dev:
1517
# nowo_beacon:
@@ -18,6 +20,10 @@ nowo_beacon:
1820
register_console_listener: true
1921
# register_messenger_listener: true # needs symfony/messenger
2022
# auto_http_transaction: false # opt-in per-request performance transactions
23+
# before_send: App\Beacon\ScrubPii # invokable service: (array): ?array
24+
# instrumentation:
25+
# doctrine: false # requires doctrine/dbal
26+
# http_client: false
2127
ignore_exceptions: []
2228
# Per-category outbound context (user is opt-in; may include PII):
2329
send:

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ Symfony client for [Symfony Beacon](https://github.com/nowo-tech/symfony-beacon)
1616
- DSN-driven ingest with host, optional port, public key, **required secret**, and project id
1717
- Empty DSN disables reporting without changing application code
1818
- Envelope transport to `POST /api/{project_id}/envelope/` with `X-Beacon-Auth` + envelope DSN auth
19+
- Delivery modes: `transport.mode` `sync` (default), `async` (finalize on terminate), or `messenger` (queue)
20+
- Versioned `User-Agent` (`beacon-bundle/{composer-version}`)
1921
- Manual APIs through `BeaconClientInterface`
2022
- Optional `kernel.exception` listener for uncaught HTTP exceptions
2123
- `ignore_exceptions` support for listener-side filtering
2224
- Configurable outbound context (`send.*`: stacktrace, request, user, PHP/Symfony versions, OS, …)
2325
- Message events can include current stacktrace; frames may include source context when files are readable
2426
- HTTP events attach request URL/method (and safe headers) when available
2527
- Breadcrumbs (`addBreadcrumb`) and performance transactions (`captureTransaction`)
28+
- Public **tags** API (`setTag` / `setTags`) and optional **`before_send`** scrubbing hook
29+
- Opt-in Doctrine SQL + HttpClient request spans / breadcrumbs (`instrumentation.*`)
2630
- Optional console / Messenger failure listeners and optional Monolog handler
2731
- Optional automatic HTTP request transactions (`auto_http_transaction`)
2832
- Precise timestamps (fractional Unix + ISO-8601 with microseconds)

composer.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"symfony/http-kernel": "^7.0 || ^8.0"
4242
},
4343
"require-dev": {
44+
"doctrine/dbal": "^3.8 || ^4.0",
4445
"friendsofphp/php-cs-fixer": "^3.0",
4546
"monolog/monolog": "^3.0",
4647
"phpstan/extension-installer": "^1.4",
@@ -79,16 +80,18 @@
7980
},
8081
"config": {
8182
"sort-packages": true,
82-
"root-version": "1.5.1-dev",
83+
"root-version": "1.6.0-dev",
8384
"allow-plugins": {
8485
"phpstan/extension-installer": true
86+
},
87+
"platform": {
8588
}
8689
},
8790
"minimum-stability": "stable",
8891
"prefer-stable": true,
8992
"extra": {
9093
"branch-alias": {
91-
"dev-main": "1.5.x-dev"
94+
"dev-main": "1.6.x-dev"
9295
}
9396
},
9497
"scripts": {
@@ -123,6 +126,7 @@
123126
"symfony/flex": "For automatic Flex recipe installation of config/packages/nowo_beacon.yaml",
124127
"monolog/monolog": "Enable nowo_beacon.monolog_handler to forward log records to Beacon",
125128
"symfony/security-bundle": "Enable send.user authenticated context via the security token storage",
126-
"symfony/messenger": "Required for register_messenger_listener (WorkerMessageFailedEvent)."
129+
"symfony/messenger": "Required for register_messenger_listener and transport.mode=messenger.",
130+
"doctrine/dbal": "Required for instrumentation.doctrine SQL spans (DBAL middleware)."
127131
}
128132
}

0 commit comments

Comments
 (0)