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

监控和日志 #10

Open
Guo-Zhang opened this issue Aug 2, 2023 · 2 comments
Open

监控和日志 #10

Guo-Zhang opened this issue Aug 2, 2023 · 2 comments

Comments

@Guo-Zhang
Copy link
Member

django-cid: 提供了一个Correlation ID,可以追踪同一个请求的环节,方便在日志里追溯链路。对于所谓的“全链路追踪”,这是一个很有用的特性。如果能做到微服务版的全链路追踪就更好了,并且如果可以和云服务配合(比如日志服务)就更好了。

@Guo-Zhang
Copy link
Member Author

另外一个类似的库django-microservices提供了一个UUID格式的request_id以确保微服务系统内请求标记的唯一性。

@Guo-Zhang
Copy link
Member Author

框架内的监控和微服务系统层面的监控做好了,微服务系统和单个服务的可观测性就会大为提高。

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

1 participant