Skip to content
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

Release tracking #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Release tracking #19

wants to merge 1 commit into from

Conversation

vitalyzhakov
Copy link

Push release to RavenClient

@erickskrauch
Copy link
Contributor

In my project, we use this solution:

class Component extends \mito\sentry\Component {

    public function init() {
        if (is_array($this->client) && !isset($this->client['release'])) {
            $this->client['release'] = Yii::$app->version;
        }

        parent::init();
    }

}

@albertborsos Maybe you should use Yii::$app->version value by default? I mean at init step \mito\sentry\Component will read Yii::$app->version value and if it not empty, then set client release field?

$this->jsOptions['environment'] = $this->environment;
}
if (is_object($this->client) && property_exists($this->client, 'release')) {
$this->client->release = $this->release;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should also set the js option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants