Skip to content

Commit 0f989d4

Browse files
authored
Merge pull request #246 from shelltime/fix/daemon-otel-metrics-log-args
fix(daemon): include debug context in OTEL metrics log
2 parents 78ac4d8 + 292b1cf commit 0f989d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

daemon/aicode_otel_processor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (p *AICodeOtelProcessor) writeDebugFile(filename string, data interface{})
8080

8181
// ProcessMetrics receives OTEL metrics and forwards to backend immediately
8282
func (p *AICodeOtelProcessor) ProcessMetrics(ctx context.Context, req *collmetricsv1.ExportMetricsServiceRequest) (*collmetricsv1.ExportMetricsServiceResponse, error) {
83-
slog.Debug("AICodeOtel: Processing metrics request", "resourceMetricsCount", len(req.GetResourceMetrics()))
83+
slog.Debug("AICodeOtel: Processing metrics request", "resourceMetricsCount", slog.Int("len", len(req.GetResourceMetrics())), slog.Bool("debug", p.debug))
8484

8585
if p.debug {
8686
p.writeDebugFile("aicode-otel-debug-metrics.txt", req)

0 commit comments

Comments
 (0)