Provide debug options in Java SDK Client to monitor the outgoing external calls for OCI resources
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
Rechercherichtung
Beginnen Sie mit bmc-common/src/main/java/com/oracle/bmc/http/internal/ClientCall.java, insbesondere mit callSync und dessen bestehender Logger-Verwendung. Verfolgen Sie, wie ausgehende OCI-Ressourcenaufrufe diese Klasse erreichen und wie die Logging-Level konfiguriert werden. Als abgeschlossen gilt die Arbeit, wenn für diese Aufrufe HTTP-URL- und Methoden-Debug-Meldungen verfügbar sind, sobald das entsprechende Log-Level aktiviert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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()); }
}
}
- Vorherrschende Sprache
- Java
- Sterne
- 243
- Forks
- 171
- Ø Merge
- 5 Min.
- Gemergte PRs (30 T.)
- 4
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus oracle/oci-java-sdk
-
NoSuchMethodError in the circuit breaker since 3.103.0 when resilience4j 2.x is on the classpathOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 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)OffenSDK
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 20/100
oracle/oci-java-sdk#788 ·
-
Identity Domains
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
oracle/oci-java-sdk#764 · 3 Kommentare ·
-
SDK
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 48/100
oracle/oci-java-sdk#726 · 1 Kommentar ·
-
Object Storage
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
oracle/oci-java-sdk#723 · 1 Reaktion ·
Alle Issues in oracle/oci-java-sdk
Ähnliche Issues
-
enhancement infra
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
Maintainer antworten meist innerhalb von 1 Tag
-
5.0.x backport bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 68/100
spring-cloud/spring-cloud-function#1569 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Move the spring-cloud-commons version and BOM import from the bus parent to the stream parentEvtl. vergeben @olegz hat das heute übernommen. Offentask
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
spring-cloud/spring-cloud-stream#3355 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:cpan-port area:performance bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
fglock/PerlOnJava#2230 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100