Skip to content

Commit acc44ff

Browse files
committed
Merge branch 'main' into feat/add-tracing-capabilities
2 parents 75f2bf1 + 1889e6a commit acc44ff

File tree

11 files changed

+28
-11
lines changed

11 files changed

+28
-11
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
All notable changes to `laravel-github-monolog` will be documented in this file.
44

5+
## v3.2.0 - 2025-03-21
6+
7+
### What's Changed
8+
9+
* feat: add tracing capabilities by @Naoray in https://github.com/Naoray/laravel-github-monolog/pull/12
10+
11+
**Full Changelog**: https://github.com/Naoray/laravel-github-monolog/compare/v3.1.0...v3.2.0
12+
13+
## v3.1.0 - 2025-03-20
14+
15+
### What's Changed
16+
17+
* fix: TypeError: DeduplicationHandler::__construct(): Argument #3 ($store) must be of type string, null given by @andrey-helldar in https://github.com/Naoray/laravel-github-monolog/pull/10
18+
* feat: enhance templates by @Naoray in https://github.com/Naoray/laravel-github-monolog/pull/11
19+
20+
**Full Changelog**: https://github.com/Naoray/laravel-github-monolog/compare/v3.0.0...v3.1.0
21+
522
## v3.0.0 - 2025-02-28
623

724
### What's Changed

src/Deduplication/DeduplicationHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class DeduplicationHandler extends BufferHandler
1515
public function __construct(
1616
HandlerInterface $handler,
1717
protected SignatureGeneratorInterface $signatureGenerator,
18-
string $store = 'default',
18+
?string $store = 'default',
1919
string $prefix = 'github-monolog:dedup:',
2020
int $ttl = 60,
2121
int|string|Level $level = Level::Error,

src/Issues/Formatters/PreviousExceptionFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
use Illuminate\Support\Str;
66
use Monolog\LogRecord;
7-
use Throwable;
87
use Naoray\LaravelGithubMonolog\Issues\InteractsWithLogRecord;
98
use Naoray\LaravelGithubMonolog\Issues\StubLoader;
9+
use Throwable;
1010

1111
class PreviousExceptionFormatter
1212
{

src/Issues/SectionMapping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static function getSectionsToRemove(array $replacements): array
2020
{
2121
return collect(self::SECTION_MAPPINGS)
2222
->when(empty($replacements), fn (Collection $collection) => $collection->values()->unique())
23-
->when(!empty($replacements), function (Collection $collection) use ($replacements) {
23+
->when(! empty($replacements), function (Collection $collection) use ($replacements) {
2424
return $collection
2525
->filter(fn (string $_, string $placeholder) => isset($replacements[$placeholder]) && empty($replacements[$placeholder]))
2626
->values()

src/Issues/TemplateRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(
3232
public function render(string $template, LogRecord $record, ?string $signature = null): string
3333
{
3434
$replacements = $this->buildReplacements($record, $signature);
35-
35+
3636
return $this->sectionCleaner->clean($template, $replacements);
3737
}
3838

src/Tracing/RequestDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Naoray\LaravelGithubMonolog\Tracing;
44

5-
use Illuminate\Support\Str;
65
use Illuminate\Routing\Events\RouteMatched;
76
use Illuminate\Support\Facades\Context;
7+
use Illuminate\Support\Str;
88

99
class RequestDataCollector
1010
{

src/Tracing/UserDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Naoray\LaravelGithubMonolog\Tracing;
44

5-
use Illuminate\Support\Facades\Context;
65
use Illuminate\Auth\Events\Authenticated;
76
use Illuminate\Contracts\Auth\Authenticatable;
7+
use Illuminate\Support\Facades\Context;
88

99
class UserDataCollector
1010
{

tests/Issues/TemplateRendererTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Naoray\LaravelGithubMonolog\Issues\TemplateRenderer;
55

66
beforeEach(function () {
7-
$this->stubLoader = new StubLoader();
7+
$this->stubLoader = new StubLoader;
88
$this->renderer = resolve(TemplateRenderer::class);
99
});
1010

tests/Issues/TemplateSectionCleanerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use Naoray\LaravelGithubMonolog\Issues\TemplateSectionCleaner;
44

55
beforeEach(function () {
6-
$this->cleaner = new TemplateSectionCleaner();
6+
$this->cleaner = new TemplateSectionCleaner;
77
});
88

99
test('it replaces template variables', function () {
@@ -150,7 +150,7 @@
150150
$replacements = [
151151
'{simplified_stack_trace}' => 'Stack trace content',
152152
'{context}' => '{"key": "value"}',
153-
'{extra}' => 'Extra data'
153+
'{extra}' => 'Extra data',
154154
];
155155

156156
$result = $this->cleaner->clean($template, $replacements);

tests/Tracing/RequestDataCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Symfony\Component\HttpFoundation\HeaderBag;
99

1010
beforeEach(function () {
11-
$this->collector = new RequestDataCollector();
11+
$this->collector = new RequestDataCollector;
1212
});
1313

1414
afterEach(function () {

0 commit comments

Comments
 (0)