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

add Pyroscope support #199

Merged
merged 1 commit into from
Feb 15, 2023
Merged

add Pyroscope support #199

merged 1 commit into from
Feb 15, 2023

Conversation

alimy
Copy link
Collaborator

@alimy alimy commented Feb 15, 2023

  • add Pyroscope support
  1. 为什么要引入Pyroscope?
    用于开发环境下对paopao-ce进行性能优化。

  2. 如何开启这个功能?

  • 构建时将 pyroscope 添加到TAGS中:
    make run TAGS='pyroscope'   
  • 在配置文件config.yaml中的Features中添加Pyroscope功能项开启该功能:
    ...
    # features中加上 Friendship
    Features:
      Default: ["Meili", "LoggerMeili", "Base", "Sqlite3", "BigCacheIndex", "MinIO", "Pyroscope"]
      Base: ["Redis", "PhoneBind"]
    Pyroscope:
      AppName: "paopao-ce"
      Endpoint: "http://localhost:4040"
      AuthToken:
      Logger:  standard                # Pyroscope logger (standard | logrus | none)
    ...

@alimy alimy merged commit fb42e72 into rocboss:dev Feb 15, 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
1 participant