-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #925 from TencentBlueKing/develop
v1.7.11
- Loading branch information
Showing
15 changed files
with
134 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
# V1.7.11 | ||
|
||
### 缺陷修复 | ||
* 修复分级管理员申请单ITSM展示问题 | ||
* 修复前端合并选择实例问题 | ||
|
||
### 功能优化 | ||
* sentry sdk切换 | ||
|
||
# V1.7.10 | ||
|
||
### 缺陷修复 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.7.10 | ||
1.7.11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-权限中心(BlueKing-IAM) available. | ||
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. | ||
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at http://opensource.org/licenses/MIT | ||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations under the License. | ||
""" | ||
import os | ||
|
||
import sentry_sdk | ||
from sentry_sdk.integrations.celery import CeleryIntegration | ||
from sentry_sdk.integrations.django import DjangoIntegration | ||
from sentry_sdk.integrations.redis import RedisIntegration | ||
|
||
|
||
def init_sentry_sdk(): | ||
"""Register celery error events to sentry""" | ||
from django.conf import settings | ||
|
||
if settings.SENTRY_DSN: | ||
# 初始化 sentry_sdk | ||
sentry_sdk.init( | ||
# debug=True, | ||
dsn=settings.SENTRY_DSN, | ||
integrations=[DjangoIntegration(), CeleryIntegration(), RedisIntegration()], | ||
# Set traces_sample_rate to 1.0 to capture 100% | ||
# of transactions for performance monitoring. | ||
# We recommend adjusting this value in production, | ||
traces_sample_rate=1.0, | ||
# If you wish to associate users to errors (assuming you are using | ||
# django.contrib.auth) you may enable sending PII data. | ||
send_default_pii=True, | ||
# By default the SDK will try to use the SENTRY_RELEASE | ||
# environment variable, or infer a git commit | ||
# SHA as release, however you may want to set | ||
# something more human-readable. | ||
# release="[email protected]", | ||
# Can export the environment | ||
# environment="production", | ||
) | ||
# set global tag | ||
sentry_sdk.set_tag("service_name", "bk-iam-%s" % os.getenv("BKPAAS_PROCESS_TYPE", "unknown")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
# for deploy on paas v3 | ||
gunicorn==19.6.0 | ||
gevent==20.9.0 | ||
|
||
# for sentry | ||
raven==6.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# V1.7.11 版本更新日志 | ||
|
||
### 缺陷修复 | ||
* 修复分级管理员申请单ITSM展示问题 | ||
* 修复前端合并选择实例问题 | ||
|
||
### 功能优化 | ||
* sentry sdk切换 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# V1.7.11 ChangeLog | ||
|
||
### Bug Fixes | ||
* Fixed the ITSM display problem of the application form for grading administrators | ||
* Fix front-end merge selection instance problem | ||
|
||
### Optimization Updates | ||
* sentry sdk switch |