Skip to content

如何实现自定义LogCollector,将GRPC请求的时间,ip地址,模型名,推理时间记录到文件中。 不仅要给出C++代码,更要给出如何build镜像的完整流程,并且给出最方便快捷build镜像,搭建开发环境的... - #1

Merged
supercoderhawk merged 1 commit into
r2.12from
copilot/fix-075c594c-4a7e-48e3-8fa8-c2600b470d1f
Sep 25, 2025

Conversation

Copilot AI commented Sep 25, 2025

Copy link
Copy Markdown
  • Analyzed existing TensorFlow Serving logging infrastructure
  • Studied LogCollector abstract interface and registration pattern
  • Examined existing test implementations for reference
  • Create custom FileLogCollector class that extends LogCollector
  • Implement CollectMessage to log GRPC request details (timestamp, IP, model name, inference time)
  • Add factory registration for the custom log collector
  • Create corresponding BUILD file entries
  • Add unit tests for the custom log collector
  • Update log collector config proto if needed
  • Create Docker build instructions and development setup guide
  • Test the complete implementation
Original prompt

如何实现自定义LogCollector,将GRPC请求的时间,ip地址,模型名,推理时间记录到文件中。 不仅要给出C++代码,更要给出如何build镜像的完整流程,并且给出最方便快捷build镜像,搭建开发环境的方式。


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@supercoderhawk
supercoderhawk marked this pull request as ready for review September 25, 2025 12:45
@supercoderhawk
supercoderhawk merged commit e1a858e into r2.12 Sep 25, 2025
1 check failed
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.

2 participants