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

日志跟踪 # 服务监控 #65

Open
wearetvxq opened this issue Jan 7, 2020 · 2 comments
Open

日志跟踪 # 服务监控 #65

wearetvxq opened this issue Jan 7, 2020 · 2 comments

Comments

@wearetvxq
Copy link

根据您的项目修改了一些web服务器,但最近频繁出错重启进程,想请教一下 项目里面的日志跟踪
和服务监控 大概怎么使用? 能否给一些相关知识文档.因为服务重启了会丢一些内存中的数据,很头疼.

@LyricTian
Copy link
Owner

LyricTian commented Jan 7, 2020

日志跟踪主要是通过trace_id查看整个调用链的情况,前提是你需要在排查错误的地方进行日志输出;服务监控,基于https://github.com/google/gops工具,可以收集当前服务的运行情况。

@fengzxu
Copy link

fengzxu commented Feb 9, 2020

centos7下面通过gin-admin-cliu新建的项目跑起来后运行,在客户端CHROME试了一下/api/v1/pub/login/captchaid ,后台的日志里HEAD MAP居然把服务器上部署的一些DOCKER容器相关的什么配置给打出来了,好长一堆信息。
NFO[0388] [http] /api/v1/pub/login/captchaid-GET-171.82.148.138-200(0ms) header="map[Accept:[text/html......

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

No branches or pull requests

3 participants