Skip to content

Control plane support log output as json#7455

Merged
rudrakhp merged 2 commits intoenvoyproxy:mainfrom
zirain:cp-log-encoder
Nov 13, 2025
Merged

Control plane support log output as json#7455
rudrakhp merged 2 commits intoenvoyproxy:mainfrom
zirain:cp-log-encoder

Conversation

@zirain
Copy link
Copy Markdown
Member

@zirain zirain commented Nov 8, 2025

fixes: #6894

Signed-off-by: zirain <zirain2009@gmail.com>
@zirain zirain requested a review from a team as a code owner November 8, 2025 14:06
@zirain
Copy link
Copy Markdown
Member Author

zirain commented Nov 8, 2025

output:

{"L":"INFO","T":"2025-11-08T13:57:59.401Z","N":"provider","C":"kubernetes/controller.go:192","M":"created gatewayapi controller","runner":"provider"}
{"L":"INFO","T":"2025-11-08T13:57:59.429Z","N":"provider","C":"kubernetes/controller.go:1998","M":"ServiceImport CRD not found, skipping ServiceImport watch","runner":"provider"}
{"L":"INFO","T":"2025-11-08T13:57:59.508Z","N":"provider","C":"kubernetes/controller.go:2353","M":"Watching gatewayAPI related objects","runner":"provider"}
{"L":"INFO","T":"2025-11-08T13:57:59.519Z","N":"provider","C":"runner/runner.go:66","M":"Running provider","runner":"provider","type":"Kubernetes"}
{"L":"INFO","T":"2025-11-08T13:57:59.519Z","C":"cmd/server.go:262","M":"Starting runner","name":"gateway-api"}
{"L":"INFO","T":"2025-11-08T13:57:59.519Z","N":"gateway-api","C":"runner/runner.go:90","M":"started","runner":"gateway-api"}
{"L":"INFO","T":"2025-11-08T13:57:59.519Z","C":"cmd/server.go:262","M":"Starting runner","name":"xds"}
{"L":"INFO","T":"2025-11-08T13:57:59.519Z","N":"xds","C":"runner/runner.go:158","M":"loaded TLS certificate and key","runner":"xds"}
{"L":"INFO","T":"2025-11-08T13:57:59.519Z","N":"xds","C":"runner/runner.go:164","M":"configured gRPC keepalive","runner":"xds","maxConnectionAge":"10h0m0s","maxConnectionAgeGrace":"2m0s"}
{"L":"INFO","T":"2025-11-08T13:57:59.519Z","N":"xds","C":"runner/runner.go:216","M":"started","runner":"xds"}
{"L":"INFO","T":"2025-11-08T13:57:59.519Z","C":"cmd/server.go:262","M":"Starting runner","name":"infrastructure"}
{"L":"INFO","T":"2025-11-08T13:57:59.519Z","C":"cmd/server.go:262","M":"Starting runner","name":"admin"}
{"L":"INFO","T":"2025-11-08T13:57:59.519Z","N":"admin","C":"admin/server.go:69","M":"starting admin server","address":"127.0.0.1:19000","enablePprof":false,"enableConsole":true}
{"L":"INFO","T":"2025-11-08T13:57:59.519Z","C":"cmd/server.go:262","M":"Starting runner","name":"metrics"}
{"L":"INFO","T":"2025-11-08T13:57:59.519Z","N":"metrics","C":"metrics/register.go:202","M":"initialized metrics pull endpoint","address":"0.0.0.0:19001","endpoint":"/metrics"}
{"L":"INFO","T":"2025-11-08T13:57:59.521Z","N":"provider.controller-runtime.metrics","C":"server/server.go:208","M":"Starting metrics server","runner":"provider"}
{"L":"INFO","T":"2025-11-08T13:57:59.521Z","N":"provider.controller-runtime.metrics","C":"server/server.go:247","M":"Serving metrics server","runner":"provider","bindAddress":":8080","secure":false}
{"L":"INFO","T":"2025-11-08T13:57:59.521Z","N":"provider","C":"manager/server.go:83","M":"starting server","runner":"provider","name":"health probe","addr":"[::]:8081"}
{"L":"INFO","T":"2025-11-08T13:57:59.521Z","N":"provider.controller-runtime.webhook","C":"webhook/server.go:191","M":"Starting webhook server","runner":"provider"}
{"L":"INFO","T":"2025-11-08T13:57:59.521Z","N":"provider.controller-runtime.certwatcher","C":"certwatcher/certwatcher.go:214","M":"Updated current TLS certificate","runner":"provider","cert":"/certs/tls.crt","key":"/certs/tls.key"}

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 8, 2025

Codecov Report

❌ Patch coverage is 63.63636% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.25%. Comparing base (fe84555) to head (c58af8f).
⚠️ Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
internal/logging/log.go 63.63% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7455      +/-   ##
==========================================
+ Coverage   72.23%   72.25%   +0.01%     
==========================================
  Files         231      231              
  Lines       34074    34084      +10     
==========================================
+ Hits        24615    24627      +12     
+ Misses       7680     7678       -2     
  Partials     1779     1779              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: zirain <zirain2009@gmail.com>
@rudrakhp rudrakhp merged commit 8eeca69 into envoyproxy:main Nov 13, 2025
56 of 58 checks passed
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.

Log json from Gateway itself

4 participants