Skip to content

Commit

Permalink
Fix 'context' & 'type' not being added to event tags
Browse files Browse the repository at this point in the history
  • Loading branch information
DieterHolvoet committed Apr 1, 2021
1 parent 68ed6b7 commit 47639db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.7.2] - 2021-03-12
## [1.7.3] - 2021-03-12
### Fixed
- Revert "Rename excluded 'channel' tags to 'logger'"
- Revert "Rename excluded `channel` tags to `logger`"
- Fix `context` & `type` not being added to event tags

## [1.7.2] - 2021-04-01
### Fixed
- Rename excluded `channel` tags to `logger`

## [1.7.1] - 2021-03-12
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/Logger/Sentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ protected function logException($level, $message, array $context): void

$event->setTags(array_reduce(
['channel', '%type'],
static function (array $tags, string $key) {
static function (array $tags, string $key) use ($context) {
if (isset($context[$key])) {
$tags[ltrim($key, '%@')] = $context[$key];
}
Expand Down

0 comments on commit 47639db

Please sign in to comment.