-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update php minors #115
Conversation
e793f4d
to
723fd13
Compare
723fd13
to
fe6b65b
Compare
fe6b65b
to
d494681
Compare
J'aime vraiment pas la solution, c'est pas beau de polluer le code avec de la logique de test. Mais, la seule autre facon que je vois de corriger ca c'est de sortir la logique du writer pour pouvoir faire un mock de Scope, mais ca brise le pattern qui existe avec les autres writer. Explication du changement: |
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠ Warning: custom changes will be lost. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je pense que tu pourrais simplement te faire un décorateur de la classe Sentry
pour les tests qui set les scopes et qui rapelle ensuite les méthodes originales sans affecter la classe Sentry
. Faudrait juste mettre la méthode getSentryScope
protected pour l'overrider dans le décorateur.
`class SentryWithScopeDecorator extends Sentry
{
const SPAN_ID = "3d1bf6350d09fb80";
const TRACE_ID = "141bb800f59d073b7a075b1eed7d5372";
public function __construct(private Sentry $original)
{}
public function log($level, $message, array $context = [])
{
$this->original->log($level, $message, $context);
}
protected function getSentryScope($level, $context): Scope
{
$scope = new Scope();
$scope->setLevel($level);
$this->setPropagationContext($scope);
if (count($context)) {
$scope->setExtras($context);
}
return $scope;
}
private function setPropagationContext(Scope $scope): void
{
$propagationContext = PropagationContext::fromDefaults();
$propagationContext->setSpanId(new SpanId(self::SPAN_ID));
$propagationContext->setTraceId(new TraceId(self::TRACE_ID));
$scope->setPropagationContext($propagationContext);
}
}
`
J'aime la solution de Christian. Peut-être que la solution serait d'avoir un check moins stricte sur le contexte qui ne touche pas ce que Sentry injecte lui même ? |
On pourrait aussi injecter une factory de Scope et ça va comparer juste des mock |
Très bon point, je l'avais oublié celle là. |
This PR contains the following updates:
4.0.2
->4.1.0
3.19.1
->3.20.1
5.12.0
->5.13.1
Release Notes
CycloneDX/cyclonedx-php-composer (cyclonedx/cyclonedx-php-composer)
v4.1.0
Compare Source
Added support for CycloneDX Specification-1.5.
--spec-version
now supports value1.5
to reflect CycloneDX Specification-1.5 (#380 via #383)Default value for that switch is unchanged - still
1.4
.cyclonedx/cyclonedx-library:^2.3
, was:^2.1
(#380 via #383)getsentry/sentry-php (sentry/sentry)
v3.20.1
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.20.1.
Bug Fixes
isTracingEnabled()
to determine the behaviour ofgetBaggage()
andgetTraceparent()
(#1555)Misc
TransactionContext
fromcontinueTrace()
(#1556)v3.20.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.20.0.
Features
Tracing without Performance (#1516)
You can now set up distributed tracing without the need to use the performance APIs.
This allows you to connect your errors that hail from other Sentry instrumented applications to errors in your PHP application.
To continue a trace, fetch the incoming Sentry tracing headers and call
\Sentry\continueTrace()
as early as possible in the request cycle.To continue a trace outward, you may attach the Sentry tracing headers to any HTTP client request.
You can fetch the required header values by calling
\Sentry\getBaggage()
and\Sentry\getTraceparent()
.Upserting Cron Monitors (#1511)
You can now create and update your Cron Monitors programmatically with code.
Read more about this in our docs.
vimeo/psalm (vimeo/psalm)
v5.13.1
Compare Source
What's Changed
Fixes
Docs
Full Changelog: vimeo/psalm@5.13.0...5.13.1
v5.13.0
Compare Source
What's Changed
Features
Fixes
non-empty-list
assertion for iterable by @boesing in https://github.com/vimeo/psalm/pull/9953Docs
Internal changes
IssueData
constants for severity levels by @lptn in https://github.com/vimeo/psalm/pull/9846Typos
New Contributors
Full Changelog: vimeo/psalm@5.12.0...5.13.0
Configuration
📅 Schedule: Branch creation - "on sunday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.