protected EntityImpl(AWSXRayRecorder creator, String name) { StringValidator.throwIfNullOrBlank(name, "(Sub)segment name cannot be null or blank."); validateNotNull(creator); this.creator = creator; this.name = name; this.subsegments = new ArrayList<>(); this.subsegmentsLock = new ReentrantLock(); this.cause = new Cause(); this.http = new ConcurrentHashMap<>(); this.aws = new ConcurrentHashMap<>(); this.sql = new ConcurrentHashMap<>(); this.annotations = new ConcurrentHashMap<>(); this.metadata = new ConcurrentHashMap<>(); this.startTime = Instant.now().toEpochMilli() / 1000.0d; this.id = Entity.generateId(); this.inProgress = true; this.referenceCount = new LongAdder(); this.totalSize = new LongAdder(); }
protected EntityImpl(AWSXRayRecorder creator, String name) { StringValidator.throwIfNullOrBlank(name, "(Sub)segment name cannot be null or blank."); validateNotNull(creator); this.creator = creator; this.name = name; this.subsegments = new ArrayList<>(); this.subsegmentsLock = new ReentrantLock(); this.cause = new Cause(); this.http = new ConcurrentHashMap<>(); this.aws = new ConcurrentHashMap<>(); this.sql = new ConcurrentHashMap<>(); this.annotations = new ConcurrentHashMap<>(); this.metadata = new ConcurrentHashMap<>(); this.startTime = Instant.now().toEpochMilli() / 1000.0d; this.id = Entity.generateId(); this.inProgress = true; this.referenceCount = new LongAdder(); this.totalSize = new LongAdder(); }
return result; } else { description = describeThrowable(throwable, Entity.generateId()); result.add(description); } else { String newId = Entity.generateId(); description.setCause(newId);
return result; } else { description = describeThrowable(throwable, Entity.generateId()); result.add(description); } else { String newId = Entity.generateId(); description.setCause(newId);