Skip to content

Commit 9c8cec3

Browse files
committed
Merge branch 'master' into martinl/cache-tracing
2 parents 519b0ac + 915ec90 commit 9c8cec3

File tree

19 files changed

+106
-18
lines changed

19 files changed

+106
-18
lines changed

.github/workflows/publish-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
steps:
2121
- name: Get auth token
2222
id: token
23-
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
23+
uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
2424
with:
2525
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
2626
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
2727

2828
- name: Checkout
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v5
3030
with:
3131
token: ${{ steps.token.outputs.token }}
3232
fetch-depth: 0

.github/workflows/static-analysis.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
2121

2222
- name: Setup PHP
2323
uses: shivammathur/setup-php@v2
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: Checkout
40-
uses: actions/checkout@v4
40+
uses: actions/checkout@v5
4141

4242
- name: Setup PHP
4343
uses: shivammathur/setup-php@v2
@@ -57,7 +57,7 @@ jobs:
5757
runs-on: ubuntu-latest
5858
steps:
5959
- name: Checkout
60-
uses: actions/checkout@v4
60+
uses: actions/checkout@v5
6161

6262
- name: Setup PHP
6363
uses: shivammathur/setup-php@v2

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070

7171
steps:
7272
- name: Checkout
73-
uses: actions/checkout@v4
73+
uses: actions/checkout@v5
7474
with:
7575
fetch-depth: 2
7676

@@ -125,7 +125,7 @@ jobs:
125125

126126
steps:
127127
- name: Checkout
128-
uses: actions/checkout@v4
128+
uses: actions/checkout@v5
129129

130130
- name: Setup PHP
131131
uses: shivammathur/setup-php@v2

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# CHANGELOG
22

3+
## 5.4.0
4+
5+
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.4.0.
6+
7+
### Features
8+
9+
- Introduce Sentry Structured Logging support. [(#940)](https://github.com/getsentry/sentry-symfony/pull/940)
10+
11+
```yaml
12+
sentry:
13+
options:
14+
enable_logs: true
15+
16+
services:
17+
Sentry\SentryBundle\Monolog\LogsHandler:
18+
arguments:
19+
- !php/const Monolog\Logger::INFO
20+
21+
monolog:
22+
handlers:
23+
sentry_logs:
24+
type: service
25+
id: Sentry\SentryBundle\Monolog\LogsHandler
26+
```
27+
28+
### Bug Fixes
29+
30+
- Add buffer flusher for sentry monolog handler. [(#936)](https://github.com/getsentry/sentry-symfony/pull/936)
31+
332
## 5.3.1
433
534
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.3.0.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"php": "^7.2||^8.0",
1616
"guzzlehttp/psr7": "^2.1.1",
1717
"jean85/pretty-package-versions": "^1.5||^2.0",
18-
"sentry/sentry": "^4.15.0",
18+
"sentry/sentry": "^4.15.2",
1919
"symfony/cache-contracts": "^1.1||^2.4||^3.0",
2020
"symfony/config": "^4.4.20||^5.0.11||^6.0||^7.0",
2121
"symfony/console": "^4.4.20||^5.0.11||^6.0||^7.0",

phpstan-baseline.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ parameters:
8686
path: src/DependencyInjection/SentryExtension.php
8787

8888
-
89-
message: "#^Cannot access offset 'before_send_logs' on mixed\\.$#"
89+
message: "#^Cannot access offset 'before_send_log' on mixed\\.$#"
9090
count: 1
9191
path: src/DependencyInjection/SentryExtension.php
9292

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function getConfigTreeBuilder(): TreeBuilder
113113
->scalarNode('before_send_transaction')->end()
114114
->scalarNode('before_send_check_in')->end()
115115
->scalarNode('before_send_metrics')->end()
116-
->scalarNode('before_send_logs')->end()
116+
->scalarNode('before_send_log')->end()
117117
->variableNode('trace_propagation_targets')->end()
118118
->arrayNode('tags')
119119
->useAttributeAsKey('name')

src/DependencyInjection/SentryExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ private function registerConfiguration(ContainerBuilder $container, array $confi
124124
$options['before_send_metrics'] = new Reference($options['before_send_metrics']);
125125
}
126126

127-
if (isset($options['before_send_logs'])) {
128-
$options['before_send_logs'] = new Reference($options['before_send_logs']);
127+
if (isset($options['before_send_log'])) {
128+
$options['before_send_log'] = new Reference($options['before_send_log']);
129129
}
130130

131131
if (isset($options['before_breadcrumb'])) {

src/Resources/config/schema/sentry-1.0.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<xsd:attribute name="before-send-transaction" type="xsd:string" />
5656
<xsd:attribute name="before-send-check-in" type="xsd:string" />
5757
<xsd:attribute name="before-send-metrics" type="xsd:string" />
58-
<xsd:attribute name="before-send-logs" type="xsd:string" />
58+
<xsd:attribute name="before-send-log" type="xsd:string" />
5959
<xsd:attribute name="error-types" type="xsd:string" />
6060
<xsd:attribute name="max-breadcrumbs" type="xsd:integer" />
6161
<xsd:attribute name="before-breadcrumb" type="xsd:string" />

src/SentryBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ final class SentryBundle extends Bundle
1717
{
1818
public const SDK_IDENTIFIER = 'sentry.php.symfony';
1919

20-
public const SDK_VERSION = '5.3.1';
20+
public const SDK_VERSION = '5.4.0';
2121

2222
public function build(ContainerBuilder $container): void
2323
{

0 commit comments

Comments
 (0)