发布跟踪-错误与最近的发布无关



我在Sentry上设置了发布跟踪,以跟踪我向生产/暂存环境发布的所有版本。但是,当我提交一个有目的的代码破坏更改时,我会发现该错误——它会关联到我在"项目"中有一个新错误,但当我查看"发布"选项卡时,它会显示与提交已知代码破坏更改相关的0个问题源自。

我正在使用Laravel 8、Sentry 2.2和Bitbucket Pipelines提交我的版本。

有什么东西我遗漏了吗?

LaravelSentry配置文件

return [
'dsn' => env('SENTRY_LARAVEL_DSN', env('SENTRY_DSN')),
// capture release as git sha
'release' => trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')),
'breadcrumbs' => [
// Capture Laravel logs in breadcrumbs
'logs' => true,
// Capture SQL queries in breadcrumbs
'sql_queries' => true,
// Capture bindings on SQL queries logged in breadcrumbs
'sql_bindings' => true,
// Capture queue job information in breadcrumbs
'queue_info' => true,
],
];

Bitbucket Yaml文件

...
- step:
name: Staging - Sentry Commit Tracking
script:
- pipe: sentryio/sentry-new-release:0.3.0
variables:
SENTRY_AUTH_TOKEN: $SENTRY_STAGING_AUTH_TOKEN
SENTRY_ORG: $SENTRY_STAGING_ORG
SENTRY_PROJECT: $SENTRY_STAGING_PROJECT
...

附言:如果您在Sentry Discord服务器中,请参阅#phphttps://discordapp.com/channels/621778831602221064/621964286952210432/782383789762281482只需确保您阅读到太平洋标准时间2020年11月29日下午5点左右

更新到最新的Sentry,并能够使其正常工作。

最新更新