docs: public CompletableFuture<StackTraceSampleResponse> requestStackTraceSample(
  			int sampleId,
  			int numSamples,
  			Time delayBetweenSamples,
  			int maxStackTraceDepth,
  			Time timeout) {
  
  		final LogicalSlot slot = assignedResource;
  
  		if (slot != null) {
  			final TaskManagerGateway taskManagerGateway = slot.getTaskManagerGateway();
  
  			return taskManagerGateway.requestStackTraceSample(
  				attemptId,
  				sampleId,
  				numSamples,
  				delayBetweenSamples,
  				maxStackTraceDepth,
  				timeout);
  		} else {
  			return FutureUtils.completedExceptionally(new Exception("The execution has no slot assigned."));
  		}
  	}