Provide debug options in Java SDK Client to monitor the outgoing external calls for OCI resources
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Bắt đầu với bmc-common/src/main/java/com/oracle/bmc/http/internal/ClientCall.java, đặc biệt là callSync và cách sử dụng logger hiện có của nó. Theo dõi cách các lệnh gọi tài nguyên OCI gửi đi đến được lớp này và cách cấu hình các cấp độ logging. Hoàn tất có nghĩa là các thông báo debug về URL và phương thức HTTP có sẵn cho các lệnh gọi đó khi cấp độ log phù hợp được bật.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
We need the ability to monitor the outgoing external calls for OCI resources such as OCI streams, Object storage, and secrets etc. I'm creating this issue as an enhancement request to add debug messages containing HTTP URL and method for the external calls. These debug messages can be enabled by changing the log level.
As an experiment, I modified the com.oracle.bmc.http.internal.ClientCall class in "bmc-common" module, and added a debug/print message in the callSync method to print the URI and method of the httpRequest. This was helpful to see the external calls. Following is the file and the "callSync"call method that I modified. Thanks.
File modified - https://bitbucket.oci.oraclecorp.com/projects/SDK/repos/java-sdk/browse/bmc-common/src/main/java/com/oracle/bmc/http/internal/ClientCall.java
Modified "callSync" method -
public RESP callSync() {
waiterScheduler = WaiterScheduler.SYNC;
SyncFutureWaiter futureWaiter = new SyncFutureWaiter();
offloadExecutor = futureWaiter;
httpRequest = httpRequest.offloadExecutor(offloadExecutor);
logger.debug("DEBUG>> httpRequest is " + httpRequest);
try {
if (httpRequest != null && httpRequest.uri() != null)
{ logger.debug("DEBUG>> URL is " + httpRequest.uri().toString()); }
if (httpRequest != null && httpRequest.method() != null)
{ logger.debug("DEBUG>> Request method is " + httpRequest.method().toString()); }
return futureWaiter.listenForResult(callAsync0(null));
} catch (BmcException e)
{ throw e; }
catch (Throwable e)
{ throw BmcException.createClientSide("Unknown error", e, null, buildServiceDetails()); }
}
}
- Ngôn ngữ chính
- Java
- Star
- 243
- Fork
- 171
- Merge trung bình
- 5 phút
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của oracle/oci-java-sdk
-
NoSuchMethodError in the circuit breaker since 3.103.0 when resilience4j 2.x is on the classpathĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
oracle/oci-java-sdk#803 ·
-
Potential token refresh timeout issue in Versions 2.91.0, 2.93.0, and 2.95.0 (Fixed in 2.97.0)Đang mởSDK
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 20/100
oracle/oci-java-sdk#788 ·
-
Identity Domains
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
oracle/oci-java-sdk#764 · 3 bình luận ·
-
SDK
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
oracle/oci-java-sdk#726 · 1 bình luận ·
-
Object Storage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
oracle/oci-java-sdk#723 · 1 reaction ·
Tất cả issue của oracle/oci-java-sdk
Issue tương tự
-
enhancement infra
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
5.0.x backport bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
spring-cloud/spring-cloud-function#1569 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Move the spring-cloud-commons version and BOM import from the bus parent to the stream parentCó thể đã có người làm @olegz đã nhận hôm nay. Đang mởtask
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
spring-cloud/spring-cloud-stream#3355 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:cpan-port area:performance bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fglock/PerlOnJava#2230 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100