enableDebugLogging method

void enableDebugLogging({
  1. String? traceKey,
})

Enable debug logging for gRPC calls by setting a trace key in the metadata. If no trace key is provided, a random one will be generated.

Implementation

void enableDebugLogging({String? traceKey}) {
  traceKey ??= _generateRandomString();
  _callOptions = CallOptions(metadata: {'dtname': traceKey});
}