8000 add Sentry feature support by alimy · Pull Request #258 · rocboss/paopao-ce · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add Sentry feature support #258

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

Merged
merged 1 commit into from
Apr 4, 2023
Merged

add Sentry feature support #258

merged 1 commit into from
Apr 4, 2023

Conversation

alimy
Copy link
Collaborator
@alimy alimy commented Apr 4, 2023
  • add Sentry feature support

PR特性:

添加对Sentry的初始支持。

  1. 为什么要引入Sentry?
    添加一种对paopao-ce的错误追踪与性能检测机制。

  2. 如何开启这个功能?
    在配置文件config.yaml中的Features中添加Sentry功能项开启该功能:

    ...
    # features中加上 Sentry
    Features:
      Default: ["Meili", "LoggerMeili", "Base", "Sqlite3", "BigCacheIndex", "MinIO", "Sentry"]
      Base: ["Redis", "PhoneBind"]
    Sentry:
      Sentry: # Sentry配置
      Dsn: "http://4ea0af5cd88d4512b7e52070506c80ec@localhost:9000/2"
      Debug: True
      AttachStacktrace: True
      TracesSampleRate: 1.0
      AttachLogrus: True  # logrus是否附加到Sentry
      AttachGin: True     # gin是否附加到Sentry
    ...

@alimy alimy merged commit 0f2b271 into rocboss:dev Apr 4, 2023
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.

1 participant
0