Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
doppleware committed Oct 1, 2024
1 parent 4577763 commit 043ddf2
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ private synchronized void AuthServiceValidateUser(Owner owner) {

}

@WithSpan
public boolean checkOwnerValidity(Owner owner) {

this.ValidateOwnerUserBad(owner);
Expand All @@ -158,20 +157,19 @@ public boolean checkOwnerValidity(Owner owner) {
private boolean ValidateOwnerUserBad(Owner owner) {
{

for (int i = 0; i < 100; i++) {
for (int i = 0; i < 120; i++) {
ValidateOwner();
}
return true;

}
}

@WithSpan
private boolean ValidateOwnerUser(Owner owner) {

Span span = otelTracer.spanBuilder("db_access_01").startSpan();

var max = ThreadLocalRandom.current().nextInt(90, 110 + 1);
int max = ThreadLocalRandom.current().nextInt(90, 110 + 1);
try {
for (int i = 0; i < max; i++) {
ValidateOwner();
Expand All @@ -184,7 +182,6 @@ private boolean ValidateOwnerUser(Owner owner) {

}

@WithSpan
private void ValidateOwner() {
// simulate SpanKind of DB query
// see
Expand Down

0 comments on commit 043ddf2

Please sign in to comment.