Skip to content

[Bug] Proxy gRPC telemetry exception logs full client TelemetryCommand #10676

Description

@Aias00

Before Creating the Bug Report

  • I have searched the existing issues and pull requests.

Runtime platform environment

All platforms.

RocketMQ version

develop branch.

JDK Version

Not applicable.

Describe the Bug

ClientActivity.processTelemetryException logs the full inbound gRPC TelemetryCommand when processing a client telemetry request fails with an internal error:

log.warn("process client telemetryCommand failed. request:{}", request, t);

Client telemetry requests can include nested protobuf messages and runtime metadata. Logging the full protobuf request can expose more client-side telemetry data than needed for diagnosis and can also produce very large warning logs.

This is separate from #10672, which covers outbound telemetry write failures in GrpcClientChannel. This issue covers inbound telemetry request processing failures in ClientActivity.

Steps to Reproduce

  1. Send a gRPC telemetry request that triggers an internal exception in ClientActivity.telemetry processing.
  2. Observe the warning log emitted by processTelemetryException.
  3. The current log serializes the complete TelemetryCommand request.

What Did You Expect to See?

The warning log should keep useful diagnostic fields, such as command type, status code, nonce, client type, and pub/sub case, without logging the complete protobuf request.

What Did You See Instead?

The warning log prints the full TelemetryCommand object as request:{}.

Additional Context

This is a small Proxy gRPC diagnostics hardening issue. It aligns with the Proxy Admin / runtime diagnostics track by making telemetry error logs safe and bounded while preserving enough context for troubleshooting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions